private static void EnsureDirectoryExists()

in CredentialProvider.Microsoft/Util/EncryptedFileWithPermissions.cs [69:77]


        private static void EnsureDirectoryExists(string filePath)
        {
            var directory = Path.GetDirectoryName(filePath);

            if (!string.IsNullOrWhiteSpace(directory) && !Directory.Exists(directory))
            {
                Directory.CreateDirectory(directory);
            }
        }