Skip to content

Commit c8e7c29

Browse files
committed
remove chownSync from import
1 parent d7ddea2 commit c8e7c29

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • implement-shell-tools/wc

implement-shell-tools/wc/wc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { program } from "commander";
2-
import fs, { chownSync } from "node:fs";
2+
import fs from "node:fs";
33
import process from "node:process";
44

55
program
@@ -30,7 +30,7 @@ const totals = { l: 0, w: 0, c: 0 };
3030
let fileCount = 0;
3131
for (const path of paths) {
3232
if (fs.statSync(path).isDirectory()) {
33-
console.log(`wc: ${path}: read: Is a directory`);
33+
console.eror(`wc: ${path}: read: Is a directory`);
3434
} else {
3535
fileCount++;
3636
let outputStr = "";

0 commit comments

Comments
 (0)