Fix DEP0005 during file base scan
This commit is contained in:
parent
16474c885f
commit
ec1f437dd9
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue