Skip to content

Commit ee4d4e7

Browse files
iansedanogahjelle
andauthored
Update python-get-all-files-in-directory/create_large_dir.py
Co-authored-by: Geir Arne Hjelle <[email protected]>
1 parent 76a7433 commit ee4d4e7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python-get-all-files-in-directory/create_large_dir.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ def create_item(item: Item, path_to: Path = Path.cwd()) -> None:
6767
path_to.joinpath(item.name).touch()
6868
return
6969

70-
if item.children or item.junk_files:
71-
root = path_to.joinpath(item.name)
72-
root.mkdir()
70+
root = path_to.joinpath(item.name)
71+
root.mkdir()
7372

7473
if item.children:
7574
for child in item.children:

0 commit comments

Comments
 (0)