AzureBlobsListDirectoryWrapper
Namespace: Proffer.Storage.Azure.Blobs.Internal
Represents a directory in a being-listed AzureBlobsStore.
public class AzureBlobsListDirectoryWrapper : Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase
Inheritance Object → FileSystemInfoBase → DirectoryInfoBase → AzureBlobsListDirectoryWrapper
Properties
FullName
A string containing the full path of the directory.
public string FullName { get; }
Property Value
Name
A string containing the name of the directory.
public string Name { get; }
Property Value
ParentDirectory
The parent directory for the current directory.
public DirectoryInfoBase ParentDirectory { get; }
Property Value
DirectoryInfoBase
Constructors
AzureBlobsListDirectoryWrapper(FileSystemInfoBase)
Initializes a new instance of the AzureBlobsListDirectoryWrapper class.
public AzureBlobsListDirectoryWrapper(FileSystemInfoBase childrens)
Parameters
childrens
FileSystemInfoBase
The childrens.
AzureBlobsListDirectoryWrapper(String, Dictionary<String, AzureBlobsFileReference>)
Initializes a new instance of the AzureBlobsListDirectoryWrapper class.
public AzureBlobsListDirectoryWrapper(string path, Dictionary<string, AzureBlobsFileReference> files)
Parameters
path
String
The directory path.
files
Dictionary<String, AzureBlobsFileReference>
The files.
Methods
EnumerateFileSystemInfos()
Enumerates all files and directories in the directory.
public IEnumerable<FileSystemInfoBase> EnumerateFileSystemInfos()
Returns
IEnumerable<FileSystemInfoBase>
Collection of files and directories
GetDirectory(String)
Returns an instance of Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase that represents a subdirectory.
public DirectoryInfoBase GetDirectory(string path)
Parameters
path
String
The directory name
Returns
DirectoryInfoBase
Instance of even if directory does not exist
Exceptions
GetFile(String)
Returns an instance of Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase that represents a file in the directory.
public FileInfoBase GetFile(string path)
Parameters
path
String
The file name
Returns
FileInfoBase
Instance of even if file does not exist