public static DirectoryInfo PrefsDir() { DirectoryInfo dipref = AbnakiFile.CombinedDirectoryPath(ApplicationProfileDir(), "prefs"); dipref.Create(); return(dipref); }
public static DirectoryInfo ApplicationProfileDir() { string appDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData, Environment.SpecialFolderOption.Create); Assembly appa = Assembly.GetEntryAssembly(); //AssemblyName appNameInfo = appa.GetName(); string company = appa.GetCustomAttribute <AssemblyCompanyAttribute>().Company; string title = appa.GetCustomAttribute <AssemblyTitleAttribute>().Title; DirectoryInfo subdir = AbnakiFile.CombinedDirectoryPath(appDir, company, title); subdir.Create(); return(subdir); }