We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd2762 commit 68ff99fCopy full SHA for 68ff99f
lib/transports/ScpTransport.coffee
@@ -70,10 +70,12 @@ class ScpTransport
70
callback?()
71
72
fetchFileTree: (localPath, callback) ->
73
- targetPath = path.join(@settings.target,
+ {isIgnore, target} = @settings
74
+
75
+ targetPath = path.join(target,
76
path.relative(atom.project.getPath(), localPath))
77
.replace(/\\/g, "/")
- {isIgnore} = @settings
78
79
80
@_getConnection (err, c) ->
81
return callback err if err
@@ -85,7 +87,7 @@ class ScpTransport
85
87
result.on "data", (data) -> buf += data.toString()
86
88
result.on "end", ->
89
files = buf.split("\n").filter((f) ->
- return f and not isIgnore(f, targetPath))
90
+ return f and not isIgnore(f, target))
91
92
callback null, files
93
0 commit comments