mirror of
https://github.com/onyx-and-iris/grokking-algorithms.git
synced 2025-01-18 16:50:53 +00:00
reword
This commit is contained in:
parent
33a56b2e20
commit
6b947083e4
@ -18,7 +18,7 @@ def files_with_extension(start_directory):
|
|||||||
items = queue.popleft()
|
items = queue.popleft()
|
||||||
|
|
||||||
for item in items.glob("*"):
|
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.is_file():
|
||||||
if item.suffix == EXT:
|
if item.suffix == EXT:
|
||||||
print(item)
|
print(item)
|
||||||
|
@ -12,7 +12,7 @@ scripts_path = Path.home() / "scripts"
|
|||||||
|
|
||||||
def files_with_extension(directory):
|
def files_with_extension(directory):
|
||||||
for item in directory.glob("*"):
|
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.is_file():
|
||||||
if item.suffix == EXT:
|
if item.suffix == EXT:
|
||||||
print(item)
|
print(item)
|
||||||
|
Loading…
Reference in New Issue
Block a user