def func(_): output = Path("remote-foo") output.write_text("hi") htmap.transfer_output_files(output) return True
def sleepy_double(x): time.sleep(1) r = x * 2 p = Path("foo") p.write_text("hi") htmap.transfer_output_files(p) return r
def test(_): p = Path("testfile") p.write_text("foobar") q = Path("otherfile") q.write_text("wizbang") htmap.transfer_output_files(p, q)
def test(_): d = Path("nested") d.mkdir() p = d / Path("testfile") p.write_text("foobar") htmap.transfer_output_files(p)
def test(_): d = Path('nested') d.mkdir() p = d / Path('testfile') p.write_text('foobar') htmap.transfer_output_files(p)
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
def test(x): p = Path("testfile") p.write_text(str(x)) htmap.transfer_output_files(p)
def test(_): p = Path("testfile") p.write_text("foobar") htmap.transfer_output_files(p)
def test(_): p = Path('testfile') p.write_text('foobar') htmap.transfer_output_files(p)