Skip to content

Commit

Permalink
fix: get_file_stats() - use fse.lstats instead of fs.lstats
Browse files Browse the repository at this point in the history
`promisified.fs.lstats` in some cases complains for "Callback must be a function. Received undefined"
  • Loading branch information
bencergazda committed May 19, 2021
1 parent 8c79b1a commit cb23c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function validate_path(path) {
*/
async function get_file_stats(file_path) {
try {
return await promisified.fs.lstat(file_path);
return await promisified.fse.lstat(file_path);
} catch (e) {
return null;
}
Expand Down

0 comments on commit cb23c10

Please sign in to comment.