Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.vfs.stat(path, {}, function(err, stat) {
console.log("stat", err, stat);
if (err || !stat) {
return callback(new Exc.FileNotFound("File at location "
+ self.path + " not found"));
}
self.$stat = stat;
callback(null, stat);
});
},
this._stat(path, function(err, stat) {
if (err)
return callback(new Exc.FileNotFound("File at location " + path + " not found"));
callback(null, stat.mime == "inode/directory"
? new jsDAV_FS_Directory(self.vfs, path, stat)
: new jsDAV_FS_File(self.vfs, path, stat)
);
});
},
this.vfs.stat(path, {}, function(err, stat) {
if (err)
return callback(new Exc.FileNotFound("File at location " + path + " not found"));
callback(null, stat.mime == "inode/directory"
? jsDAV_FS_Directory.new(self.vfs, path, stat)
: jsDAV_FS_File.new(self.vfs, path, stat)
);
});
},