Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit a464aa6

Browse files
author
Wliu
authored
Merge pull request #1221 from UziTech/patch-1
use path.join
2 parents da6b692 + 90eb81b commit a464aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tree-view.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ class TreeView
869869
return
870870

871871
entryName = path.basename(initialPath)
872-
newPath = "#{newDirectoryPath}/#{entryName}".replace(/\s+$/, '')
872+
newPath = path.join(newDirectoryPath, entryName)
873873

874874
try
875875
@emitter.emit 'will-move-entry', {initialPath, newPath}

0 commit comments

Comments
 (0)