File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ var program = require("commander");
33var colors = require ( "colors" ) ;
44
55program
6- . version ( "2.0.3 " )
6+ . version ( "2.0.4 " )
77 . usage ( "[command] [option]" )
88 . command ( "upload" , "upload files" )
99 . command ( "download" , "download files" )
Original file line number Diff line number Diff line change @@ -80,11 +80,9 @@ function fileDisplay(filePath) {
8080 const isFile = stats . isFile ( ) ;
8181 const isDir = stats . isDirectory ( ) ;
8282 if ( isFile ) {
83- const fileName = filedir . replace (
84- `${ originDirectoryPath } ${ path . sep } ` ,
85- ""
86- ) ;
87- // .replace(/\\/g, "/");
83+ const fileName = filedir
84+ . replace ( `${ originDirectoryPath } ${ path . sep } ` , "" )
85+ . replace ( / \\ / g, "/" ) ;
8886 uploadFile ( filedir , fileName , prefix ) ;
8987 } else if ( isDir ) {
9088 fileDisplay ( filedir ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " qiniu-shell" ,
3- "version" : " 2.0.3 " ,
3+ "version" : " 2.0.4 " ,
44 "description" : " A tool of qiniu's file operation" ,
55 "main" : " index.js" ,
66 "keywords" : [
You can’t perform that action at this time.
0 commit comments