Ejemplo n.º 1
0
        /// <summary>
        /// Gets the directory where user logs will be saved.
        /// </summary>
        /// <returns></returns>
        private static DirectoryInfo GetLogDir()
        {
            var logPath = Path.Combine(CRAXCEL_DIR.FullName, "Logs");

            var dir = new DirectoryInfo(logPath);

            FileUtilities.CreateDirectoryIfNotExists(dir);

            return(dir);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the temporary directory where the application will perform it's processing.
        /// </summary>
        /// <returns></returns>
        private static DirectoryInfo GetTempDir()
        {
            string userTempFolder = Path.GetTempPath();

            string craxcelTempFolder = Path.Combine(userTempFolder, APP_NAME);

            var dir = new DirectoryInfo(craxcelTempFolder);

            FileUtilities.CreateDirectoryIfNotExists(dir);

            return(dir);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Gets the users personal directory where the application will save unlocked files and logs to, creating it if neccessary.
        /// </summary>
        /// <returns></returns>
        private static DirectoryInfo GetCraxcelDir()
        {
            string userPersonalFolder = GetFolderPath(SpecialFolder.Personal);

            string craxcelFolder = Path.Combine(userPersonalFolder, APP_NAME);

            var dir = new DirectoryInfo(craxcelFolder);

            FileUtilities.CreateDirectoryIfNotExists(dir);

            return(dir);
        }