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


版本历史
版本变更
v16.0.0

运行时弃用。

v15.0.0

允许行为的运行时弃用。

v14.14.0

仅文档弃用。

类型:运行时

\Type: Runtime

在 Node.js 的未来版本中,fs.rmdirfs.rmdirSyncfs.promises.rmdir 将忽略 recursive 选项。

\In future versions of Node.js, recursive option will be ignored for fs.rmdir, fs.rmdirSync, and fs.promises.rmdir.

请改用 fs.rm(path, { recursive: true, force: true })fs.rmSync(path, { recursive: true, force: true })fs.promises.rm(path, { recursive: true, force: true })

\Use fs.rm(path, { recursive: true, force: true }), fs.rmSync(path, { recursive: true, force: true }) or fs.promises.rm(path, { recursive: true, force: true }) instead.

AltStyle によって変換されたページ (->オリジナル) /