Esempio n. 1
0
 private static string _GetFullPath(string path)
 {
     if (path == null)
     {
         throw new ArgumentNullException("path");
     }
     if (!UnixPath.IsPathRooted(path))
     {
         path = string.Concat(UnixDirectoryInfo.GetCurrentDirectory(), UnixPath.DirectorySeparatorChar, path);
     }
     return(path);
 }
Esempio n. 2
0
        private static string _GetFullPath(string path)
        {
            if (path == null)
            {
                throw new ArgumentNullException("path");
            }
            if (!IsPathRooted(path))
            {
                path = UnixDirectoryInfo.GetCurrentDirectory() + DirectorySeparatorChar + path;
            }

            return(path);
        }