UNPKG

fs-iterator

Version:

A file system iterator with filter and asyncIterator iterafaces. Supports Node 0.10 and above

9 lines (8 loc) 286 B
import lstat from './lstat.js'; import realpath from './realpath.js'; export default function lstatReal(path, options, callback) { realpath(path, function realpathCallback(err, realpath) { if (err) return callback(err); lstat(realpath, options, callback); }); }