@@ -246,7 +246,7 @@ const handler = async function cmdRemove(argv) {
246
246
try {
247
247
await helper . safeRemove ( task . src ) ;
248
248
++ removedCount ;
249
- log . fileLog ( `Remove : ${ task . index } <${ task . src } >` , logTag ) ;
249
+ log . fileLog ( `Removed : ${ task . index } <${ task . src } >` , logTag ) ;
250
250
log . show ( logTag , `SafeDel ${ ++ index } /${ tasks . length } ${ task . src } ` ) ;
251
251
} catch ( error ) {
252
252
log . error ( logTag , `failed to remove file ${ task . src } ` , error ) ;
@@ -443,18 +443,19 @@ async function preRemoveArgs(f, options) {
443
443
}
444
444
if ( shouldRemove ) {
445
445
log . show (
446
- "preRemove add:" ,
446
+ "PreRemove add:" ,
447
447
`${ f . index } /${ c . total } ${ helper . pathShort ( fileSrc , 32 ) } ${ itemDesc } ` ) ;
448
+ log . fileLog ( `Prepared: ${ f . index } /${ c . total } <${ fileSrc } > ${ itemDesc } ` , "PreRemove" ) ;
448
449
} else {
449
450
( testName || testSize || testMeasure ) && log . info (
450
- "preRemove ignore:" ,
451
+ "PreRemove ignore:" ,
451
452
`${ f . index } /${ c . total } ${ helper . pathShort ( fileSrc , 32 ) } [${ itemDesc } ] (${ testName } ${ testSize } ${ testMeasure } )` ) ;
452
453
}
453
454
return buildRemoveArgs ( f . index , itemDesc , shouldRemove , fileSrc ) ;
454
455
455
456
} catch ( error ) {
456
- log . error ( "preRemove error:" , error , fileSrc ) ;
457
- log . fileLog ( `Error: ${ f . index } <${ fileSrc } >` , "cmdRemove " ) ;
457
+ log . error ( "PreRemove error:" , error , fileSrc ) ;
458
+ log . fileLog ( `Error: ${ f . index } <${ fileSrc } >` , "PreRemove " ) ;
458
459
throw error ;
459
460
}
460
461
}
0 commit comments