/// <inheritdoc /> public void DeleteDirectory(string directoryName, string[] path = null) { #region validation if (string.IsNullOrEmpty(directoryName)) { throw new ArgumentNullException(nameof(directoryName)); } #endregion CloudBlobDirectory cloudBlobDirectory = CloudBlobContainer.GetCloudBlobDirectoryReference(directoryName, path); cloudBlobDirectory.DeleteRecursive(); }
/// <inheritdoc /> public void MoveDirectory(string directoryName, string[] sourcePath, string[] targetPath) { #region validation if (string.IsNullOrEmpty(directoryName)) { throw new ArgumentNullException(nameof(directoryName)); } if (sourcePath == targetPath) { throw new InvalidOperationException("source can´t be equal target"); } #endregion CopyDirectory(directoryName, sourcePath, targetPath); CloudBlobDirectory cloudBlobDirectory = CloudBlobContainer.GetCloudBlobDirectoryReference(directoryName, sourcePath); cloudBlobDirectory.DeleteRecursive(); }