public static string GetRootPath(string root) { string rootPath = OSDirectoryManager.TryGetRootPath(root); if (rootPath == null) { throw new Exception(String.Format("Root:{0}, Access Denied!", root)); } return(rootPath); }
static OSDirectoryManager() { OSDirectoryManager._instance = new OSDirectoryManager(); }