Class SearchResult<T>
The result of a file system search operation.
Inherited Members
Namespace: FubarDev.FtpServer.FileSystem
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class SearchResult<T>
where T : class, IUnixFileSystemEntry
Type Parameters
Name | Description |
---|---|
T | The type of the found file system entry. |
Constructors
| Improve this Doc View SourceSearchResult(IUnixDirectoryEntry, Nullable<T>, Nullable<String>)
Initializes a new instance of the SearchResult<T> class.
Declaration
public SearchResult(IUnixDirectoryEntry directoryEntry, T? fileEntry, string? fileName)
Parameters
Type | Name | Description |
---|---|---|
IUnixDirectoryEntry | directoryEntry | The directory entry of the found |
Nullable<T> | fileEntry | The found IUnixFileSystemEntry. |
Nullable<String> | fileName | The name of the IUnixFileSystemEntry to be searched for within the |
Properties
| Improve this Doc View SourceDirectory
Gets the IUnixDirectoryEntry where the FileName was searched.
Declaration
public IUnixDirectoryEntry Directory { get; }
Property Value
Type | Description |
---|---|
IUnixDirectoryEntry |
Entry
Gets the found IUnixFileSystemEntry.
Declaration
public T? Entry { get; }
Property Value
Type | Description |
---|---|
Nullable<T> |
Remarks
null
when the target entry could not be found.
FileName
Gets the name of the Entry.
Declaration
public string? FileName { get; }
Property Value
Type | Description |
---|---|
Nullable<String> |
Remarks
null
when the found entry is a ROOT entry.