We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs.rmdir
fs.rm
This project uses fs.rmdir with { recursive: true } which has been runtime deprecated since Node.js v16.0.0.
{ recursive: true }
flipper/desktop/flipper-server/src/devices/ios/IOSBridge.tsx
Line 251 in 657e5b7
Example code
import fs from "fs-extra"; const dir = "test"; await fs.mkdir(dir); await fs.rmdir("test", { recursive: true });
Output
(node:93995) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead (Use `node --trace-deprecation ...` to show where the warning was created)
Replace fs.rmdir with fs.rm API call
Example code which does not thrown runtime warning
import fs from "fs-extra"; const dir = "test"; await fs.mkdir(dir); await fs.rm("test", { recursive: true });
The text was updated successfully, but these errors were encountered:
replace deprecated rmdir with rm
b819119
Summary: reported in gh issue #5667 Reviewed By: nikoant Differential Revision: D61539207 fbshipit-source-id: 7f816cefa4981ff2c57fb04a483a98617f96d132
Closed by b819119
Sorry, something went wrong.
No branches or pull requests
Is your request related to a problem? Please describe.
This project uses fs.rmdir with
{ recursive: true }
which has been runtime deprecated since Node.js v16.0.0.flipper/desktop/flipper-server/src/devices/ios/IOSBridge.tsx
Line 251 in 657e5b7
Example code
Output
Describe the solution you'd like
Replace fs.rmdir with fs.rm API call
Example code which does not thrown runtime warning
The text was updated successfully, but these errors were encountered: