Class ClearDirectory
- Namespace
- ZeroInstall.Store.Deployment
- Assembly
- ZeroInstall.Store.dll
Deletes files listed in a Manifest file from a directory.
public class ClearDirectory : DirectoryOperation, IDisposable
- Inheritance
-
objectClearDirectory
- Implements
- Inherited Members
Constructors
ClearDirectory(string, Manifest, ITaskHandler)
Deletes files listed in a Manifest file from a directory.
public ClearDirectory(string path, Manifest manifest, ITaskHandler handler)
Parameters
pathstringThe path of the directory to clear.
manifestManifestThe contents of a Manifest file describing the directory.
handlerITaskHandlerA callback object used when the user needs to be asked questions or informed about IO tasks.
Properties
PendingDeletes
The paths that Commit() would delete after Stage(): files and links, followed by directories with the deepest ones first. Directories are only to be deleted if they are empty.
public IEnumerable<string> PendingDeletes { get; }
Property Value
Methods
OnCommit()
protected override void OnCommit()
OnRollback()
protected override void OnRollback()
OnStage()
protected override void OnStage()