This commit is contained in:
onyx-and-iris 2024-01-12 12:32:53 +00:00
parent 33a56b2e20
commit 6b947083e4
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ def files_with_extension(start_directory):
items = queue.popleft()
for item in items.glob("*"):
# if it is a file and has extension EXT then print
# if item is a file and has extension EXT then print
if item.is_file():
if item.suffix == EXT:
print(item)

View File

@ -12,7 +12,7 @@ scripts_path = Path.home() / "scripts"
def files_with_extension(directory):
for item in directory.glob("*"):
# if it is a file and has extension EXT then print
# if item is a file and has extension EXT then print
if item.is_file():
if item.suffix == EXT:
print(item)