nl_tokens: path . resolve ( [ from ... ] to )
pl_tokens: function resolve ( ) { var resolvedPath = '' var resolvedAbsolute = <mask> var cwd for ( var i = arguments . length - 1 ; i >= - 1 && ! resolvedAbsolute ; i -= 1 ) { var path if ( i >= 0 ) { path = arguments [ i ] } else { if ( cwd === undefined ) { cwd = posix . dirname ( sketchSpecifics . cwd ( ) ) } path = cwd } path = sketchSpecifics . getString ( path , 'path' ) // Skip empty entries if ( path . length === 0 ) { continue } resolvedPath = path + '/' + resolvedPath resolvedAbsolute = path . charCodeAt ( 0 ) === CHAR_FORWARD_SLASH } // At this point the path should be resolved to a full absolute path, but // handle relative paths to be safe (might happen when process.cwd() fails) // Normalize the path resolvedPath = normalizeString ( resolvedPath , ! resolvedAbsolute ) if ( resolvedAbsolute ) { if ( resolvedPath . length > 0 ) return '/' + resolvedPath else return '/' } else if ( resolvedPath . length > 0 ) { return resolvedPath } else { return '.' } }