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