Commit 40b1f560 authored by Gary Ruben (Monash University)'s avatar Gary Ruben (Monash University)
Browse files

Cleaned up commented-out code that treated single files specially.

parent 65a9f305
......@@ -140,17 +140,6 @@ def send_directory(node, remote_login, src_path):
if node.count == 0:
# No files at this node, just return
print("No files to transfer")
# elif node.count == 1:
# # Only one file. Just copy unchanged.
# output = subprocess.run(
# f"scp -q {remote_login}:{node.src}/{files} {node.dest}",
# shell=True,
# check=True
# )
# print("stdout:", output.stdout)
# print("stderr:", output.stderr)
# # os.chmod(f"{node.dest}/{files}", 0o550)
# print(f"Transferred single file {node.src} -> {node.dest}")
else:
# At least one file. Transfer all files to a tarball.
if node.src == src_path:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment