Esempio n. 1
0
        /// <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));
        }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
 public string getPath(LogicalDirectory logicalDirectory)
 {
     return(directoryPathBuilder.getPath(logicalDirectory));
 }
Esempio n. 4
0
 public LocalFile(LogicalDirectory logicalDirectory, string fileName)
 {
     LogicalDirectory = logicalDirectory;
     FileName         = fileName;
 }