summaryrefslogtreecommitdiff
path: root/std/fs/empty_dir.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/fs/empty_dir.ts')
-rw-r--r--std/fs/empty_dir.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/fs/empty_dir.ts b/std/fs/empty_dir.ts
index de52890a3..2f5d2deeb 100644
--- a/std/fs/empty_dir.ts
+++ b/std/fs/empty_dir.ts
@@ -43,7 +43,7 @@ export function emptyDirSync(dir: string): void {
try {
const items = [...readDirSync(dir)];
- // if directory already exist. then remove it's child item.
+ // If the directory exists, remove all entries inside it.
while (items.length) {
const item = items.shift();
if (item && item.name) {