Skip to content

Commit

Permalink
fix: add .rm and .rmSync to fs methods (#362)
Browse files Browse the repository at this point in the history
Co-authored-by: zhouhongxuan <zhouhongxuan@kuaishou.com>
  • Loading branch information
alienzhou and zhouhongxuan committed Jul 12, 2022
1 parent 0372035 commit 2f1a49f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util/lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const fsSyncMethods = [
'fdatasyncSync',
'mkdtempSync',
'copyFileSync',
'rmSync',

'createReadStream',
'createWriteStream',
Expand Down Expand Up @@ -87,6 +88,7 @@ export const fsAsyncMethods = [
'fdatasync',
'mkdtemp',
'copyFile',
'rm',

'watchFile',
'unwatchFile',
Expand Down

0 comments on commit 2f1a49f

Please sign in to comment.