Fix DEP0005 during file base scan

This commit is contained in:
Bryan Ashby 2018-11-19 20:16:30 -07:00
parent 16474c885f
commit ec1f437dd9
1 changed files with 1 additions and 1 deletions

View File

@ -705,7 +705,7 @@ function scanFile(filePath, options, iterator, cb) {
// up to many seconds in time for larger files. // up to many seconds in time for larger files.
// //
const chunkSize = 1024 * 64; const chunkSize = 1024 * 64;
const buffer = new Buffer(chunkSize); const buffer = Buffer.allocUnsafe(chunkSize);
fs.open(filePath, 'r', (err, fd) => { fs.open(filePath, 'r', (err, fd) => {
if(err) { if(err) {