diff --git a/docs/os-module.md b/docs/os-module.md index fc41dbb..f8ce876 100644 --- a/docs/os-module.md +++ b/docs/os-module.md @@ -22,7 +22,7 @@ function listItems(directory) { items.forEach((item) => { const itemPath = path.join(directory, item); const stats = fs.statSync(itemPath); - console.log(`${item}:${stats.isDirectory() ? '目录' : '文件'}`); + console.log(`${item}:${stats.isDirectory() ? 'directory' : 'file'}`); }); } diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/os-module.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/os-module.md index 9ce421d..d0d0150 100755 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/os-module.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/os-module.md @@ -18,8 +18,8 @@ import path from 'path'; function listItems(directory) { const items = fs.readdirSync(directory); - - items.forEach((item) => { + + items.forEach((item) => { const itemPath = path.join(directory, item); const stats = fs.statSync(itemPath); console.log(`${item}:${stats.isDirectory() ? '目录' : '文件'}`);