public static NPath Resolve(this NPath path) { // Add a reference to Mono.Posix with an .rsp file in the Assets folder with the line "-r:Mono.Posix.dll" for this to work #if ENABLE_MONO if (!path.IsInitialized || !NPath.IsUnix /* nothing to resolve on windows */ || path.IsRelative || !path.FileExists()) { return(path); } return(new NPath(Mono.Unix.UnixPath.GetCompleteRealPath(path.ToString()))); #else return(path); #endif }