forked from tern-tools/tern
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extensions:scancode: Only scan at directory level
Scancode takes a ridiculous amount of time to scan every file in a full OS. It is much faster at making decisions on what to scan when operating at the directory level, especially since it does its own file level inventorying. To allow for the best possible user experience, we will only resort to scanning at the directory level. For this to work, we will also need to check if the files were analyzed before. This change introduces the following changes: 1. Remove the file level data collection function. 2. Introduce a collect_layer_data function which will collect the file level data and return a list of FileData objects. 3. Introduce a add_file_data function which will make use of the 'merge' method in FileData to add the collected file level information to the ImageLayer object. 4. Load and save to the cache and information that is collected. Work towards tern-tools#480 Signed-off-by: Nisha K <[email protected]>
- Loading branch information
Nisha K
committed
Mar 16, 2020
1 parent
d99461e
commit 9dc4f2c
Showing
1 changed file
with
37 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters