OpenTween.MySpecialPath.GetFileSystemPath C# (CSharp) Method

GetFileSystemPath() private static method

private static GetFileSystemPath ( Environment folder ) : string
folder System.Environment
return string
        private static string GetFileSystemPath(Environment.SpecialFolder folder)
        {
            // パスを取得
            var path = string.Format("{0}{3}{1}{3}{2}",
                Environment.GetFolderPath(folder),
                Application.CompanyName,
                Application.ProductName,
                Path.DirectorySeparatorChar.ToString());

            // パスのフォルダを作成
            lock (typeof(Application))
            {
                if (!Directory.Exists(path))
                {
                    Directory.CreateDirectory(path);
                }
            }
            return path;
        }

Same methods

MySpecialPath::GetFileSystemPath ( Environment folder, string productName ) : string