mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(mellow) always add slash to end
This commit is contained in:
parent
7f00b601cc
commit
2a6db8c64f
1 changed files with 1 additions and 3 deletions
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
isWin = process.platform === 'win32',
|
||||
Util = require(DIR + 'util'),
|
||||
format = require(DIR + 'format'),
|
||||
|
||||
win = require(DIR_SERVER + 'win'),
|
||||
flop = require(DIR_SERVER + 'flop');
|
||||
|
|
@ -53,8 +52,7 @@
|
|||
.slice(2)
|
||||
.join('');
|
||||
|
||||
path = volume + ':' + path;
|
||||
path = format.addSlashToEnd(path);
|
||||
path = volume + ':' + (path || '\\');
|
||||
}
|
||||
|
||||
return path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue