# Node 中如何判断一个路径是文件还是文件夹

Issue

欢迎在 Issue 中交流与讨论: Issue 205 (opens new window)

Author

回答者: PlutoCA (opens new window)

const statInfo = fs.lstatSync("./xx"). statInfo.isDirectory()

Last Updated: 1/17/2021, 2:02:56 PM