Skip to content

Commit 091692c

Browse files
committed
add a function for the logic for when the case of the path is "dir"
1 parent 03d9fb6 commit 091692c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • implement-shell-tools/wc

implement-shell-tools/wc/wc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ if (pathInfo.isFile()) {
4747
for (const file of files) {
4848
const filePath = `${path}/${file}`;
4949
const fileContent = await fs.readFile(filePath, "utf-8");
50+
const stats = counter(fileContent)
5051
}
5152
}
5253

0 commit comments

Comments
 (0)