src/Pure/General/rsync.scala
changeset 80192 36e6ba1527f0
parent 77852 df35b5b7b6a4
child 80233 4ac6324a651b
--- a/src/Pure/General/rsync.scala	Fri May 24 17:31:49 2024 +0200
+++ b/src/Pure/General/rsync.scala	Fri May 24 19:15:51 2024 +0200
@@ -40,10 +40,8 @@
         (if (stats) " --stats" else "")
     }
 
-    def target(path: Path, direct: Boolean = false): String = {
-      val s = ssh.rsync_path(path)
-      if (direct) Url.direct_path(s) else s
-    }
+    def target(path: Path, direct: Boolean = false): String =
+      Url.dir_path(ssh.rsync_path(path), direct = direct)
   }
 
   def exec(