Fix bug in findByFullPath()

This commit is contained in:
Bryan Ashby 2018-12-09 02:20:50 -07:00
parent 4bceb74cc4
commit 167916e8dd
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ module.exports = class FileEntry {
// Checkums may have changed and are not validated here. // Checkums may have changed and are not validated here.
static findByFullPath(fullPath, cb) { static findByFullPath(fullPath, cb) {
// first, basic by-filename lookup. // first, basic by-filename lookup.
FileEntry.findByFileNameWildcard(paths.basename(fuillPath), (err, entries) => { FileEntry.findByFileNameWildcard(paths.basename(fullPath), (err, entries) => {
if(err) { if(err) {
return cb(err); return cb(err);
} }