From e5227041f501b4d2ef1a11ebc8b49adc8a86ed87 Mon Sep 17 00:00:00 2001 From: Yifei Sun Date: Sun, 5 Apr 2026 12:10:35 +0200 Subject: [PATCH] osync/ssh: drop unused open and restore rsync-path comment --- src/ssh.fs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ssh.fs b/src/ssh.fs index 864b037..838ccd1 100644 --- a/src/ssh.fs +++ b/src/ssh.fs @@ -1,6 +1,5 @@ module Osync.Ssh -open System open System.Diagnostics open System.IO @@ -114,6 +113,9 @@ let rsyncFiles let srcFilesDir = Path.Combine(srcDataPath, "files") let destFilesDir = Path.Combine(destDataPath, "files") + // Use --rsync-path to cd on the remote side so the remote path is + // just ".". This avoids spaces in remote paths (e.g. macOS + // "Application Support") which rsync cannot handle portably. let (srcFiles, destFiles, extraArgs) = match srcHost, destHost with | Some hostname, None -> -- knotmirror 0.0.1