Skip to content

Commit 088df21

Browse files
committed
edit code for when path is dir
1 parent 140467f commit 088df21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • implement-shell-tools/wc

implement-shell-tools/wc/wc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def process_file(file_path):
6060
for file in os.listdir(path):
6161
file_path = os.path.join(path, file)
6262
if os.path.isfile(file_path):
63-
with open(file_path, "r") as f:
64-
content = f.read()
63+
process_file(file_path)
64+
6565

6666

6767

0 commit comments

Comments
 (0)