Microsoft.WindowsAzure.Commands.Test.Utilities.Common.FileSystemHelper.GetTemporaryDirectoryName C# (CSharp) Method

GetTemporaryDirectoryName() public static method

Create a random directory name that doesn't yet exist on disk.
public static GetTemporaryDirectoryName ( ) : string
return string
        public static string GetTemporaryDirectoryName()
        {
            string path = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
            while (Directory.Exists(path))
            {
                path = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
            }

            return path;
        }