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");
3
3
var colors = require ( "colors" ) ;
4
4
5
5
program
6
- . version ( "2.0.3 " )
6
+ . version ( "2.0.4 " )
7
7
. usage ( "[command] [option]" )
8
8
. command ( "upload" , "upload files" )
9
9
. command ( "download" , "download files" )
Original file line number Diff line number Diff line change @@ -80,11 +80,9 @@ function fileDisplay(filePath) {
80
80
const isFile = stats . isFile ( ) ;
81
81
const isDir = stats . isDirectory ( ) ;
82
82
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, "/" ) ;
88
86
uploadFile ( filedir , fileName , prefix ) ;
89
87
} else if ( isDir ) {
90
88
fileDisplay ( filedir ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " qiniu-shell" ,
3
- "version" : " 2.0.3 " ,
3
+ "version" : " 2.0.4 " ,
4
4
"description" : " A tool of qiniu's file operation" ,
5
5
"main" : " index.js" ,
6
6
"keywords" : [
You can’t perform that action at this time.
0 commit comments