joelanford / goscan

A simple tool to scan text, binary, and archive files for keywords
MIT License
2 stars 2 forks source link

Files with same name are overwritten in scratch space #14

Closed joelanford closed 7 years ago

joelanford commented 7 years ago

If two files with the same name but in different paths are passed in to be scanned, the last file listed will overwrite all other previously listed files in the scratch space, which results in a race condition where some files may not be fully scanned.

Perhaps the original files don't need to be copied into the scratch space at all? And only when unarchival or decompression is needed will that scratch space be used.

joelanford commented 7 years ago

Fixed by 16c553d