isaacs / node-graceful-fs

fs with incremental backoff on EMFILE
ISC License
1.27k stars 147 forks source link

feat: enqueue rm when EMFILE #242

Open suguanYang opened 1 year ago

suguanYang commented 1 year ago

rm also need to handle on EMFILE

 [Error: EMFILE: too many open files, scandir 'output/.test/xxx'] {
      errno: -24,
      code: 'EMFILE',
      syscall: 'scandir',
      path: 'output/.test/xxx'
    }