示例#1
0
    def func(_):
        output = Path("remote-foo")
        output.write_text("hi")

        htmap.transfer_output_files(output)

        return True
示例#2
0
 def sleepy_double(x):
     time.sleep(1)
     r = x * 2
     p = Path("foo")
     p.write_text("hi")
     htmap.transfer_output_files(p)
     return r
示例#3
0
    def test(_):
        p = Path("testfile")
        p.write_text("foobar")

        q = Path("otherfile")
        q.write_text("wizbang")

        htmap.transfer_output_files(p, q)
示例#4
0
    def test(_):
        d = Path("nested")
        d.mkdir()

        p = d / Path("testfile")
        p.write_text("foobar")

        htmap.transfer_output_files(p)
示例#5
0
    def test(_):
        d = Path('nested')
        d.mkdir()

        p = d / Path('testfile')
        p.write_text('foobar')

        htmap.transfer_output_files(p)
示例#6
0
    def test(_):
        p = Path('testfile')
        p.write_text('foobar')

        q = Path('otherfile')
        q.write_text('wizbang')

        htmap.transfer_output_files(p, q)
    def func(_):
        output = Path("remote-foo")
        output.write_text("hi")

        destination = htmap.TransferPath(target, protocol="file")

        htmap.transfer_output_files((output, destination))

        return True
示例#8
0
    def test(x):
        p = Path("testfile")
        p.write_text(str(x))

        htmap.transfer_output_files(p)
示例#9
0
    def test(_):
        p = Path("testfile")
        p.write_text("foobar")

        htmap.transfer_output_files(p)
示例#10
0
    def test(_):
        p = Path('testfile')
        p.write_text('foobar')

        htmap.transfer_output_files(p)