Restores the state saved by
SaveAsync(IReadOnlyFileSystem, IFile)
to the previous state.
- Namespace
- Statiq
.Common - Containing Type
- IFileWriteTracker
Syntax
Task<string> RestoreAsync(IReadOnlyFileSystem fileSystem, IFile sourceFile)
Parameters
Name | Type | Description |
---|---|---|
fileSystem | IReadOnlyFileSystem | The current file system. |
sourceFile | IFile | The file to restore from. |
Return Value
Type | Description |
---|---|
Task |
A message if the file could not be restored, or null if the file was restored successfully. |