コード例 #1
0
        private string CreateLongDirectory(string basePath, bool create = true)
        {
            string name = TempDirectory.GetMaxLengthRandomName();

            string fullPath = Path.Combine(basePath, name, name, name, name, name);

            if (create)
            {
                Directory.CreateDirectory(fullPath);
            }

            return(fullPath);
        }