mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
fix(edit) wrong file name on win
This commit is contained in:
parent
06c39ecd5d
commit
b9d1249ec8
1 changed files with 4 additions and 1 deletions
|
|
@ -9,7 +9,8 @@
|
|||
CloudFunc = require(DIR_LIB + 'cloudfunc'),
|
||||
patch = require(DIR_SERVER + 'patch'),
|
||||
files = require(DIR_SERVER + 'files'),
|
||||
hash = require(DIR_SERVER + 'hash');
|
||||
hash = require(DIR_SERVER + 'hash'),
|
||||
mellow = require(DIR_SERVER + 'mellow');
|
||||
|
||||
module.exports = function(sock) {
|
||||
Util.check(arguments, ['socket']);
|
||||
|
|
@ -21,6 +22,8 @@
|
|||
size: CloudFunc.MAX_FILE_SIZE
|
||||
};
|
||||
|
||||
name = mellow.convertPath(name);
|
||||
|
||||
getHash(name, function(error, hash) {
|
||||
if (error)
|
||||
socket.emit('err', error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue