@@ -43,7 +43,7 @@ func main() {
43
43
44
44
// version
45
45
if * pFinderVersion {
46
- fmt .Println ("fastfinder v1.4" )
46
+ fmt .Println ("fastfinder v1.4.1 " )
47
47
if ! Contains (os .Args , "-c" ) && ! Contains (os .Args , "--configuration" ) {
48
48
os .Exit (0 )
49
49
}
@@ -247,13 +247,21 @@ func main() {
247
247
}
248
248
}
249
249
250
- // copy matching files
251
- if len (* matchContent ) > 0 && config .Output .CopyMatchingFiles {
252
- LogMessage (LOG_INFO , "[INFO]" , "Copy all matching files" )
253
- InitProgressbar (int64 (len (* matchPattern )))
254
- for _ , f := range * matchContent {
255
- ProgressBarStep ()
256
- FileCopy (f , config .Output .FilesCopyPath , config .Output .Base64Files )
250
+ // listing and copy matching files
251
+ LogMessage (LOG_INFO , "[INFO]" , "scan finished in" , basePath )
252
+ if len (* matchContent ) > 0 {
253
+ LogMessage (LOG_INFO , "[INFO]" , "Matching files: " )
254
+ for _ , p := range * matchContent {
255
+ LogMessage (LOG_INFO , " |" , p )
256
+ }
257
+
258
+ if config .Output .CopyMatchingFiles {
259
+ LogMessage (LOG_INFO , "[INFO]" , "Copy all matching files" )
260
+ InitProgressbar (int64 (len (* matchPattern )))
261
+ for _ , f := range * matchContent {
262
+ ProgressBarStep ()
263
+ FileCopy (f , config .Output .FilesCopyPath , config .Output .Base64Files )
264
+ }
257
265
}
258
266
} else {
259
267
LogMessage (LOG_INFO , "[INFO]" , "No match found" )
0 commit comments