Interface IEntry
An entry in the WebDAV file system
Namespace:FubarDev.WebDavServer.FileSystem
Assembly:FubarDev.WebDavServer.dll
Syntax
public interface IEntry
Properties
| Improve this Doc View SourceCreationTimeUtc
Gets the time this entry was created
Declaration
DateTime CreationTimeUtc { get; }
Property Value
Type | Description |
---|---|
DateTime |
FileSystem
Gets the file system of this entry
Declaration
[NotNull]
IFileSystem FileSystem { get; }
Property Value
Type | Description |
---|---|
IFileSystem |
LastWriteTimeUtc
Gets the last time this entry was modified
Declaration
DateTime LastWriteTimeUtc { get; }
Property Value
Type | Description |
---|---|
DateTime |
Name
Gets the name of the entry
Declaration
[NotNull]
string Name { get; }
Property Value
Type | Description |
---|---|
String |
Parent
Gets the collection that contains this entry
Declaration
[CanBeNull]
ICollection Parent { get; }
Property Value
Type | Description |
---|---|
ICollection |
Remarks
This property can be null
when this entry is the root collection.
Path
Gets the path of the entry
Declaration
[NotNull]
Uri Path { get; }
Property Value
Type | Description |
---|---|
Uri |
Methods
| Improve this Doc View SourceDeleteAsync(CancellationToken)
Deletes this entry
Declaration
[NotNull]
[ItemNotNull]
Task<DeleteResult> DeleteAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The cancellation token |
Returns
Type | Description |
---|---|
Task<DeleteResult> | The result of the delete operation |
SetCreationTimeUtcAsync(DateTime, CancellationToken)
Sets the creation time
Declaration
[NotNull]
Task SetCreationTimeUtcAsync(DateTime creationTime, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DateTime | creationTime | The new creation time |
CancellationToken | cancellationToken | The cancellation token |
Returns
Type | Description |
---|---|
Task | The async task |
SetLastWriteTimeUtcAsync(DateTime, CancellationToken)
Sets the last write time
Declaration
[NotNull]
Task SetLastWriteTimeUtcAsync(DateTime lastWriteTime, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DateTime | lastWriteTime | The new last write time |
CancellationToken | cancellationToken | The cancellation token |
Returns
Type | Description |
---|---|
Task | The async task |