/// <summary> /// Combine the current path with another input path of type string /// </summary> /// <param name="path">the path to be added into</param> /// <returns>resulting file path</returns> public FilePath Combine(string path) { FilePath result = null; if (path == null || path == "") { result = new FilePath(this.GetNetPath()); } else if (path.ToCharArray()[0] == '/') // absolute path { result = new FilePath(path); } else { result = new FilePath(this.GetNetPath()); result.AddPath(path); } return result; }
void IDataManager.ChangeCurrentDirectory(FilePath path) { m_CurrentDirectory = path; }