mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-06 19:25:24 +00:00
feat(command): list folders scannning
This commit is contained in:
parent
a4a3387bdc
commit
e9c2e4d6fa
@ -157,7 +157,7 @@ async def loop_files(library_id, folder, folder_path, force, plugins):
|
|||||||
tasks = []
|
tasks = []
|
||||||
for root, _, files in os.walk(folder_path):
|
for root, _, files in os.walk(folder_path):
|
||||||
with tqdm(
|
with tqdm(
|
||||||
total=len(files), desc=f"Scanning {folder_path}", leave=False
|
total=len(files), desc=f"Scanning {root}", leave=True
|
||||||
) as pbar:
|
) as pbar:
|
||||||
candidate_files = []
|
candidate_files = []
|
||||||
for file in files:
|
for file in files:
|
||||||
@ -309,6 +309,7 @@ async def loop_files(library_id, folder, folder_path, force, plugins):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
pbar.update(len(batch))
|
pbar.update(len(batch))
|
||||||
|
pbar.set_postfix({"Candidates": len(tasks)}, refresh=True)
|
||||||
|
|
||||||
# Process all tasks after they've been created
|
# Process all tasks after they've been created
|
||||||
for future in tqdm(
|
for future in tqdm(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user