Zero Install .NET API 2.20.0
ZeroInstall.Store.FileSystem.IBuilder Interface Reference

Builds a file system directory. More...

Inheritance diagram for ZeroInstall.Store.FileSystem.IBuilder:
ZeroInstall.Store.FileSystem.IForwardOnlyBuilder ZeroInstall.Store.FileSystem.DirectoryBuilder ZeroInstall.Store.FileSystem.PrefixBuilder ZeroInstall.Store.Manifests.ManifestBuilder

Public Member Functions

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...
 
- Public Member Functions inherited from ZeroInstall.Store.FileSystem.IForwardOnlyBuilder
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 AddSymlink (string path, string target)
 Adds a symbolic link to the implementation. More...
 
void AddHardlink (string path, string target, bool executable=false)
 Adds a hardlink to the implementation. More...
 

Detailed Description

Builds a file system directory.

Member Function Documentation

◆ MarkAsExecutable()

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

Marks a previously added file as executable.

Parameters
pathThe path of the file to create relative to the implementation root.
Exceptions
UnauthorizedAccessExceptionAccess to a resource was denied.
IOExceptionAn IO operation failed.

Implemented in ZeroInstall.Store.FileSystem.DirectoryBuilder, ZeroInstall.Store.FileSystem.PrefixBuilder, and ZeroInstall.Store.Manifests.ManifestBuilder.

◆ Remove()

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

Removes a file or directory from the implementation.

Parameters
pathThe path of the file or directory relative to the implementation root.
Exceptions
UnauthorizedAccessExceptionAccess to a resource was denied.
IOExceptionAn IO operation failed.

Implemented in ZeroInstall.Store.FileSystem.DirectoryBuilder, ZeroInstall.Store.FileSystem.PrefixBuilder, and ZeroInstall.Store.Manifests.ManifestBuilder.

◆ Rename()

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

Renames a file or directory in the implementation.

Parameters
pathThe original path of the file or directory relative to the implementation root.
targetThe new path of the file or directory relative to the implementation root.
Exceptions
UnauthorizedAccessExceptionAccess to a resource was denied.
IOExceptionAn IO operation failed.

Implemented in ZeroInstall.Store.FileSystem.DirectoryBuilder, ZeroInstall.Store.FileSystem.PrefixBuilder, and ZeroInstall.Store.Manifests.ManifestBuilder.

◆ TurnIntoSymlink()

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

Turns a previously added file into a symlink.

Parameters
pathThe path of the symlink to create relative to the implementation root.
Exceptions
UnauthorizedAccessExceptionAccess to a resource was denied.
IOExceptionAn IO operation failed.

Implemented in ZeroInstall.Store.FileSystem.DirectoryBuilder, ZeroInstall.Store.FileSystem.PrefixBuilder, and ZeroInstall.Store.Manifests.ManifestBuilder.


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