Table of Contents

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 string

The path of the directory to clear.

manifest Manifest

The contents of a Manifest file describing the directory.

handler ITaskHandler

A 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()