mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-05-02 04:42:29 +00:00
iterdir doesn't need a list
This commit is contained in:
@@ -132,7 +132,7 @@ def wipe_index(index_dir: Path) -> None:
|
||||
Args:
|
||||
index_dir: Path to the search index directory to clear
|
||||
"""
|
||||
for child in list(index_dir.iterdir()):
|
||||
for child in index_dir.iterdir():
|
||||
if child.is_dir():
|
||||
shutil.rmtree(child)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user