-
-
Notifications
You must be signed in to change notification settings - Fork 610
Description
As noted in #3, we do not extract and scan at the same time.
A better way would be to handle internally an archive as if it were a special type of directory (both contain files after all), and when a single archive scan is requested (or when archives are found in a larger scan) we could extract these temporarily to a temp directory, scan the extract and return the results. This would require a bit more thinking to get it right.
At a high level a tree with archives would be considered the same as a tree with directories. Archives would become just a special type directory-like containers for more files.
We could expose an os.walk
-like function that would transparently extract archives to a temp directory and yield a real path and the temp location of a given file