dotnet-storage/OpenHarbor.Storage.Azure/Blob/AzureBlobDirectoryInfo.cs

16 lines
467 B
C#
Raw Permalink Normal View History

using Microsoft.WindowsAzure.Storage.Blob;
using OpenHarbor.Storage.Abstractions;
namespace OpenHarbor.Storage.Azure.Blob;
public class AzureBlobDirectoryInfo(CloudBlobDirectory blobDirectory) : IDirectoryInfo
{
public string Path => blobDirectory.Prefix.TrimEnd('/');
public bool IsDirectory => true;
}
public class AzureBlobNotExistingDirectoryInfo(string path) : IDirectoryInfo
{
public string Path { get; } = path;
public bool IsDirectory => true;
}