/// <summary> /// Get the path to a logical directory /// </summary> /// <param name="logicalDirectory">logical directory</param> /// <returns>path to the logical directory</returns> public string getPath(LogicalDirectory logicalDirectory) { string appDirectoryPath = getAppDirectoryPath(); string relativePath = getRelativePath(logicalDirectory); return(Path.Combine(appDirectoryPath, relativePath)); }
/// <summary> /// Get the relative path from the app directory for a logical directory /// </summary> /// <param name="logicalDirectory"></param> /// <returns>relative path from the app directory</returns> private string getRelativePath(LogicalDirectory logicalDirectory) { string relativePath; switch (logicalDirectory) { case LogicalDirectory.Import: relativePath = IMPORT_DIRECTORY; break; case LogicalDirectory.Data: relativePath = DATA_DIRECTORY; break; default: relativePath = ""; break; } return(relativePath); }
public string getPath(LogicalDirectory logicalDirectory) { return(directoryPathBuilder.getPath(logicalDirectory)); }
public LocalFile(LogicalDirectory logicalDirectory, string fileName) { LogicalDirectory = logicalDirectory; FileName = fileName; }