コード例 #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)
コード例 #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
コード例 #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)