2024-11-10 16:57:24 -05:00
|
|
|
|
using Microsoft.WindowsAzure.Storage.Blob;
|
2024-11-11 11:37:02 -05:00
|
|
|
|
using OpenHarbor.Storage.Abstractions;
|
2024-11-10 16:57:24 -05:00
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|