Exemplo n.º 1
0
    def func(_):
        output = Path("remote-foo")
        output.write_text("hi")

        htmap.transfer_output_files(output)

        return True
Exemplo n.º 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
Exemplo n.º 3
0
    def test(_):
        p = Path("testfile")
        p.write_text("foobar")

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

        htmap.transfer_output_files(p, q)
Exemplo n.º 4
0
    def test(_):
        d = Path("nested")
        d.mkdir()

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

        htmap.transfer_output_files(p)
Exemplo n.º 5
0
    def test(_):
        d = Path('nested')
        d.mkdir()

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

        htmap.transfer_output_files(p)
Exemplo n.º 6
0
    def test(_):
        p = Path('testfile')
        p.write_text('foobar')

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

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

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

        htmap.transfer_output_files((output, destination))

        return True
Exemplo n.º 8
0
    def test(x):
        p = Path("testfile")
        p.write_text(str(x))

        htmap.transfer_output_files(p)
Exemplo n.º 9
0
    def test(_):
        p = Path("testfile")
        p.write_text("foobar")

        htmap.transfer_output_files(p)
Exemplo n.º 10
0
    def test(_):
        p = Path('testfile')
        p.write_text('foobar')

        htmap.transfer_output_files(p)