Skip to content

Commit 6697f07

Browse files
authored
rsync fixes (#319)
* Added command line argument to set correct permissions for directories and files * Re-enabled message to log successful file transfers
1 parent 4cc796c commit 6697f07

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/murfey/client/rsync.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ def parse_stderr(line: str):
401401
"--outbuf=line",
402402
"--files-from=-",
403403
"-p", # preserve permissions
404+
"--chmod=D0750,F0750", # 4: Read, 2: Write, 1: Execute | User, Group, Others
404405
]
405406
rsync_cmd.extend([".", self._remote])
406407

src/murfey/client/tui/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ def rsync_result(update: RSyncerUpdate):
231231
if not self.rsync_processes.get(update.base_path):
232232
raise ValueError("TUI rsync process does not exist")
233233
if update.outcome is TransferResult.SUCCESS:
234-
# log.info(
235-
# f"File {str(update.file_path)!r} successfully transferred ({update.file_size} bytes)"
236-
# )
237-
pass
234+
log.debug(
235+
f"Succesfully transferred file {str(update.file_path)!r} ({update.file_size} bytes)"
236+
)
237+
# pass
238238
else:
239239
log.warning(f"Failed to transfer file {str(update.file_path)!r}")
240240
self.rsync_processes[update.base_path].enqueue(update.file_path)

0 commit comments

Comments
 (0)