feature/rglob #29
@ -386,16 +386,9 @@ def process_path(
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
elif os.path.isfile(path):
|
elif os.path.isfile(path):
|
||||||
file_results = ""
|
|
||||||
file_extension = os.path.splitext(path)[1]
|
file_extension = os.path.splitext(path)[1]
|
||||||
if file_extension in SUPPORTED_EXTENSIONS:
|
if file_extension in SUPPORTED_EXTENSIONS:
|
||||||
# 扫描动画
|
file_results = checkModeAndDetect(mode, path, file_extension, pycdc_addr)
|
||||||
with tqdm(total=100, desc="Scanning file", unit="%", ncols=100) as pbar:
|
|
||||||
for i in range(10):
|
|
||||||
file_results = checkModeAndDetect(
|
|
||||||
mode, path, file_extension, pycdc_addr
|
|
||||||
)
|
|
||||||
pbar.update(10) # Update the progress bar by 10%
|
|
||||||
if file_results is not None:
|
if file_results is not None:
|
||||||
for key in file_results:
|
for key in file_results:
|
||||||
if key != "none": # Exclude 'none' risk level
|
if key != "none": # Exclude 'none' risk level
|
||||||
|
Loading…
x
Reference in New Issue
Block a user