Class ClearDirectory
- Namespace
- ZeroInstall.Store.Deployment
- Assembly
- ZeroInstall.Store.dll
Deletes files listed in a Manifest file from a directory.
[MustDisposeResource]
public class ClearDirectory : DirectoryOperation, IDisposable
- Inheritance
-
ClearDirectory
- 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
path
stringThe path of the directory to clear.
manifest
ManifestThe contents of a Manifest file describing the directory.
handler
ITaskHandlerA callback object used when the user needs to be asked questions or informed about IO tasks.
Methods
OnCommit()
Template method to commit the changes made by OnStage().
protected override void OnCommit()
OnRollback()
Template method to revert any changes made by OnStage().
protected override void OnRollback()
OnStage()
Template method to stage changes.
protected override void OnStage()