nl_tokens: Retrieves the { @link fs . Stats } for the target of the given symlink . If the symlink is broken then the Stats of the symlink itself are returned .
pl_tokens: function symlinkStat ( fs , path , lstats , callback ) { call . safe ( fs . stat , path , ( err , stats ) => { if ( err ) { // The symlink is broken, so return the stats for the link itself return callback ( null , lstats ) ; } try { // Return the stats for the resolved symlink target, // and override the `isSymbolicLink` method to indicate that it's a symlink stats . isSymbolicLink = ( ) => true ; } catch ( err2 ) { // Setting stats.isSymbolicLink threw an error // (probably because fs.stat returned an invalid result) return callback ( err2 ) ; } <mask> ( null , stats ) ; } ) ; }