Zero Install .NET API 2.20.0
ZeroInstall.Store.FileSystem.PrefixBuilder Class Reference

Wraps an IBuilder and prepends a directory prefix to paths. More...

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

Public Member Functions

 PrefixBuilder (IBuilder underlyingBuilder, string prefix)
 Creates a new prefix 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...
 

Detailed Description

Wraps an IBuilder and prepends a directory prefix to paths.

Constructor & Destructor Documentation

◆ PrefixBuilder()

ZeroInstall.Store.FileSystem.PrefixBuilder.PrefixBuilder ( IBuilder  underlyingBuilder,
string  prefix 
)
inline

Creates a new prefix builder.

Parameters
underlyingBuilderThe underlying IBuilder to wrap.
prefixThe directory prefix to prepend to paths.

Member Function Documentation

◆ AddDirectory()

void ZeroInstall.Store.FileSystem.PrefixBuilder.AddDirectory ( string  path)

Adds a subdirectory to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.

◆ AddFile()

void ZeroInstall.Store.FileSystem.PrefixBuilder.AddFile ( string  path,
Stream  stream,
UnixTime  modifiedTime,
bool  executable = false 
)

Adds a file to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.

◆ AddHardlink()

void ZeroInstall.Store.FileSystem.PrefixBuilder.AddHardlink ( string  path,
string  target,
bool  executable = false 
)

Adds a hardlink to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.

◆ AddSymlink()

void ZeroInstall.Store.FileSystem.PrefixBuilder.AddSymlink ( string  path,
string  target 
)

Adds a symbolic link to the implementation.

Implements ZeroInstall.Store.FileSystem.IForwardOnlyBuilder.

◆ MarkAsExecutable()

void ZeroInstall.Store.FileSystem.PrefixBuilder.MarkAsExecutable ( string  path)

Marks a previously added file as executable.

Implements ZeroInstall.Store.FileSystem.IBuilder.

◆ Remove()

void ZeroInstall.Store.FileSystem.PrefixBuilder.Remove ( string  path)

Removes a file or directory from the implementation.

Implements ZeroInstall.Store.FileSystem.IBuilder.

◆ Rename()

void ZeroInstall.Store.FileSystem.PrefixBuilder.Rename ( string  path,
string  target 
)

Renames a file or directory in the implementation.

Implements ZeroInstall.Store.FileSystem.IBuilder.

◆ TurnIntoSymlink()

void ZeroInstall.Store.FileSystem.PrefixBuilder.TurnIntoSymlink ( string  path)

Turns a previously added file into a symlink.

Implements ZeroInstall.Store.FileSystem.IBuilder.


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