Skip to content

Commit b205f2e

Browse files
committed
Correct rsync command
1 parent 9170850 commit b205f2e

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

dataflow_transfer/run_classes/generic_runs.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ def metadata_synced(self):
5757

5858
def sync_metadata(self):
5959
"""Start background rsync transfer for metadata files."""
60-
# make metadata destination path if it doesn't exist
61-
if not os.path.exists(self.metadata_destination):
62-
os.makedirs(self.metadata_destination)
6360
metadata_rsync_command = self.generate_rsync_command(
6461
remote=False, with_exit_code_file=True
6562
)
@@ -108,8 +105,8 @@ def generate_rsync_command(self, remote=False, with_exit_code_file=False):
108105
"-au",
109106
log_file_option,
110107
*(rsync_options),
111-
self.run_dir,
112-
destination,
108+
self.run_dir + "/",
109+
destination + "/",
113110
]
114111
command_str = " ".join(command)
115112
if with_exit_code_file:

0 commit comments

Comments
 (0)