Skip to content

Use rm over deprecated rmdir#96

Open
jbpratt wants to merge 1 commit intoredhat-actions:mainfrom
jbpratt:fix-deprecation-warning
Open

Use rm over deprecated rmdir#96
jbpratt wants to merge 1 commit intoredhat-actions:mainfrom
jbpratt:fix-deprecation-warning

Conversation

@jbpratt
Copy link
Copy Markdown

@jbpratt jbpratt commented Mar 21, 2024

Description

use rm instead of rmdir

this was officially deprecated in v16

(node:23073) [DEP0147] DeprecationWarning: In future versions of
Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use
fs.rm(path, { recursive: true }) instead

https://nodejs.org/api/deprecations.html#DEP0147

Signed-off-by: jbpratt jbpratt78@gmail.com

Related Issue(s)

fixes #84

Checklist

  • This PR includes a documentation change
  • This PR does not need a documentation change

  • This PR includes test changes
  • This PR's changes are already tested

  • This change is not user-facing
  • This change is a patch change
  • This change is a minor change
  • This change is a major (breaking) change

Changes made

fix deprecation

this was officially deprecated in v16

```
(node:23073) [DEP0147] DeprecationWarning: In future versions of
Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use
fs.rm(path, { recursive: true }) instead
```

https://nodejs.org/api/deprecations.html#DEP0147

Signed-off-by: jbpratt <jbpratt78@gmail.com>
@skoved skoved removed this from Issue Tracking Aug 21, 2025
@skoved skoved moved this to Need Review in Issue Tracking Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Need Review

Development

Successfully merging this pull request may close these issues.

[BUG] Deprecation warning

2 participants