lib/watch.js
function getPath(path, callback) {
  fs.lstat(path, function(err, stats) {
    if(err) return callback(err);

    // Check if it's a link
    if(stats.isSymbolicLink()) fs.readlink(path, callback);

    callback(err, path);
  });
}
function getPath(path, callback) {
  fs.lstat(path, function(err, stats) {
    if(err) return callback(err);

    // Check if it's a link
    if(stats.isSymbolicLink()) fs.readlink(path, callback);

    callback(err, path);
  });
}
function getPath ( path , callback ) { fs . lstat ( path , function ( err , stats ) { if ( err ) return callback ( err ) ; // Check if it's a link if ( stats . isSymbolicLink ( ) ) fs . readlink ( path , callback ) ; callback ( err , path ) ; } ) ; }
Helper for finder to also handle symlinks.

@param {String} path
@param {Function} callback
@api private
Helper for finder to also handle symlinks .