diff --git a/SabreTools.IO/PathTool.cs b/SabreTools.IO/PathTool.cs index cb94f1a..1b6e522 100644 --- a/SabreTools.IO/PathTool.cs +++ b/SabreTools.IO/PathTool.cs @@ -7,6 +7,18 @@ namespace SabreTools.IO /// public static class PathTool { + /// + /// Get the appdata directory + /// + public static string GetAppDataDirectory() + { +#if NET20 || NET35 + return Environment.ExpandEnvironmentVariables("%APPDATA%"); +#else + return Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); +#endif + } + /// /// Get the home directory for the current user ///