ysmood/nofs

copy method easy to cause EMFILE errors

Closed this issue · 3 comments

kdepp commented

easy to cause EMFILE errors when the directory to copy contains more than a hundred files

Have you read the FAQ of nofs? Goto: https://github.com/ysmood/nofs#faq

Please update your Node version or use graceful-fs yourself:

Object.assign require('fs'), require('graceful-fs')
fs = require 'nofs'

By the way you can use nofs.copySync, it won't have this issue. I dropped graceful-fs after nofs v0.6.6.