Zero Install .NET API 2.20.0
ZeroInstall.Store.Manifests.ManifestBuilder Class Reference

Builds a Manifest for a file system directory. More...

Inheritance diagram for ZeroInstall.Store.Manifests.ManifestBuilder:
NanoByte::Common::Threading::MarshalNoTimeout ZeroInstall.Store.FileSystem.IBuilder ZeroInstall.Store.FileSystem.IForwardOnlyBuilder

Public Member Functions

 ManifestBuilder (ManifestFormat format)
 Creates a new manifest builder. More...
 
void AddDirectory (string path)
 Adds a subdirectory to the implementation. More...
 
void AddFile (string path, Stream stream, UnixTime modifiedTime, bool executable=false)
 Adds a file to the implementation. More...
 
void AddHardlink (string path, string target, bool executable=false)
 Adds a hardlink to the implementation. More...
 
void AddSymlink (string path, string target)
 Adds a symbolic link to the implementation. More...
 
void Rename (string path, string target)
 Renames a file or directory in the implementation. More...
 
void Remove (string path)
 Removes a file or directory from the implementation. More...
 
void MarkAsExecutable (string path)
 Marks a previously added file as executable. More...
 
void TurnIntoSymlink (string path)
 Turns a previously added file into a symlink. More...
 

Properties

Manifest Manifest [get]
 The manifest.
 

Detailed Description

Builds a Manifest for a file system directory.

Constructor & Destructor Documentation

◆ ManifestBuilder()

ZeroInstall.Store.Manifests.ManifestBuilder.ManifestBuilder ( ManifestFormat  format)
inline

Creates a new manifest builder.

Parameters
formatThe manifest format.

Member Function Documentation

◆ AddDirectory()

void ZeroInstall.Store.Manifests.ManifestBuilder.AddDirectory ( string  path)

Adds a subdirectory to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.

◆ AddFile()

void ZeroInstall.Store.Manifests.ManifestBuilder.AddFile ( string  path,
Stream  stream,
UnixTime  modifiedTime,
bool  executable = false 
)
inline

Adds a file to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.

◆ AddHardlink()

void ZeroInstall.Store.Manifests.ManifestBuilder.AddHardlink ( string  path,
string  target,
bool  executable = false 
)
inline

Adds a hardlink to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.

◆ AddSymlink()

void ZeroInstall.Store.Manifests.ManifestBuilder.AddSymlink ( string  path,
string  target 
)
inline

Adds a symbolic link to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.

◆ MarkAsExecutable()

void ZeroInstall.Store.Manifests.ManifestBuilder.MarkAsExecutable ( string  path)
inline

Marks a previously added file as executable.

Implements ZeroInstall.Store.FileSystem.IBuilder.

◆ Remove()

void ZeroInstall.Store.Manifests.ManifestBuilder.Remove ( string  path)
inline

Removes a file or directory from the implementation.

Implements ZeroInstall.Store.FileSystem.IBuilder.

◆ Rename()

void ZeroInstall.Store.Manifests.ManifestBuilder.Rename ( string  path,
string  target 
)
inline

Renames a file or directory in the implementation.

Implements ZeroInstall.Store.FileSystem.IBuilder.

◆ TurnIntoSymlink()

void ZeroInstall.Store.Manifests.ManifestBuilder.TurnIntoSymlink ( string  path)
inline

Turns a previously added file into a symlink.

Implements ZeroInstall.Store.FileSystem.IBuilder.


The documentation for this class was generated from the following file: