Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
remote_tree_to_local_tars
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gary Ruben
remote_tree_to_local_tars
Commits
40b1f560
Commit
40b1f560
authored
4 years ago
by
Gary Ruben (Monash University)
Browse files
Options
Downloads
Patches
Plain Diff
Cleaned up commented-out code that treated single files specially.
parent
65a9f305
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
asci_to_vault.py
+0
-11
0 additions, 11 deletions
asci_to_vault.py
with
0 additions
and
11 deletions
asci_to_vault.py
+
0
−
11
View file @
40b1f560
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment