Fix DEP0005 during file base scan
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user