DEP0147: fs.rmdir(path, { recursive: true })


类型: 仅文档

在 Node.js 的未来版本中,fs.rmdir(path, { recursive: true }) 将抛出不存在的路径,或者当给定一个文件作为目标时。 改用 fs.rm(path, { recursive: true, force: true })

Type: Documentation-only

In future versions of Node.js, fs.rmdir(path, { recursive: true }) will throw on nonexistent paths, or when given a file as a target. Use fs.rm(path, { recursive: true, force: true }) instead.