Skip to content

Commit

Permalink
Merge pull request #21 from SeaTechRC/patch-1
Browse files Browse the repository at this point in the history
Handle spaces in folder names
  • Loading branch information
falkoschindler authored Jan 18, 2024
2 parents e8f3a0d + 794c6fe commit 187e3b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion livesync/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sync(self) -> None:
args += ''.join(f' --exclude="{e}"' for e in self._get_ignores())
args += f' -e "ssh -p {self.ssh_port}"' # NOTE: use SSH with custom port
args += f' --rsync-path="mkdir -p {self.target_path} && rsync"' # NOTE: create target folder if not exists
run_subprocess(f'rsync {args} {self.source_path}/ {self.target}/', quiet=True)
run_subprocess(f'rsync {args} "{self.source_path}/" "{self.target}/"', quiet=True)
if isinstance(self.on_change, str):
run_subprocess(f'ssh {self.host} -p {self.ssh_port} "cd {self.target_path}; {self.on_change}"')
if callable(self.on_change):
Expand Down

0 comments on commit 187e3b3

Please sign in to comment.