From e25ce0e76df18063833f7f5e7331d363dced2d7c Mon Sep 17 00:00:00 2001 From: mean-cj Date: Thu, 10 Aug 2017 00:29:01 +0700 Subject: [PATCH 1/2] fix sync destination folder doesn't have (/) --- lib/controller/service-controller.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller/service-controller.coffee b/lib/controller/service-controller.coffee index c0217b2..8a7517b 100644 --- a/lib/controller/service-controller.coffee +++ b/lib/controller/service-controller.coffee @@ -56,7 +56,7 @@ module.exports = ServiceController = else src = obj + (if fs.isDirectorySync obj then path.sep else '') dst = @genRemoteString config.remote.user, config.remote.host, - if fs.isDirectorySync obj then path.join config.remote.path, relativePath else path.dirname (path.join config.remote.path, relativePath) + if fs.isDirectorySync obj then path.join config.remote.path, relativePath else path.dirname (path.join config.remote.path, relativePath) + path.sep when 'down' if config.behaviour?.alwaysSyncAll is true From e572d5930ed950d4ba593eba8a09b03e73389f4a Mon Sep 17 00:00:00 2001 From: mean-cj Date: Thu, 10 Aug 2017 00:35:39 +0700 Subject: [PATCH 2/2] Update service-controller.coffee --- lib/controller/service-controller.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller/service-controller.coffee b/lib/controller/service-controller.coffee index 8a7517b..da60f7f 100644 --- a/lib/controller/service-controller.coffee +++ b/lib/controller/service-controller.coffee @@ -56,7 +56,7 @@ module.exports = ServiceController = else src = obj + (if fs.isDirectorySync obj then path.sep else '') dst = @genRemoteString config.remote.user, config.remote.host, - if fs.isDirectorySync obj then path.join config.remote.path, relativePath else path.dirname (path.join config.remote.path, relativePath) + path.sep + if fs.isDirectorySync obj then path.join config.remote.path, relativePath else (path.dirname (path.join config.remote.path, relativePath)) + path.sep when 'down' if config.behaviour?.alwaysSyncAll is true