add option to use fs.lstat in replace of fs.stat