bcpeinhardt / simplifile

Simple file operations for Gleam that work on all targets (Erlang/Node/Deno)
71 stars 10 forks source link

♻️ In future versions `fs.rmdir(path, { recursive: true })` will be removed. #13

Closed hayleigh-dot-dev closed 11 months ago

hayleigh-dot-dev commented 11 months ago

I get this error using simplifile.delete on node v19.2.0:

(node:57335) [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)
bcpeinhardt commented 11 months ago

Ah thank you for this! I think this warning was getting suppressed for me because I'm only using delete from tests.

bcpeinhardt commented 11 months ago

Fixed with latest publish (v0.1.14)