Show / Hide Table of Contents

Interface IBuilder

Builds a file system directory.

Inherited Members
IForwardOnlyBuilder.AddDirectory(String)
IForwardOnlyBuilder.AddFile(String, Stream, UnixTime, Boolean)
IForwardOnlyBuilder.AddSymlink(String, String)
IForwardOnlyBuilder.AddHardlink(String, String, Boolean)
Namespace: ZeroInstall.Store.FileSystem
Assembly: ZeroInstall.Store.dll
Syntax
public interface IBuilder : IForwardOnlyBuilder

Methods

MarkAsExecutable(String)

Marks a previously added file as executable.

Declaration
void MarkAsExecutable(string path)
Parameters
Type Name Description
String path

The path of the file to create relative to the implementation root.

Exceptions
Type Condition
UnauthorizedAccessException

Access to a resource was denied.

IOException

An IO operation failed.

Remove(String)

Removes a file or directory from the implementation.

Declaration
void Remove(string path)
Parameters
Type Name Description
String path

The path of the file or directory relative to the implementation root.

Exceptions
Type Condition
UnauthorizedAccessException

Access to a resource was denied.

IOException

An IO operation failed.

Rename(String, String)

Renames a file or directory in the implementation.

Declaration
void Rename(string path, string target)
Parameters
Type Name Description
String path

The original path of the file or directory relative to the implementation root.

String target

The new path of the file or directory relative to the implementation root.

Exceptions
Type Condition
UnauthorizedAccessException

Access to a resource was denied.

IOException

An IO operation failed.

TurnIntoSymlink(String)

Turns a previously added file into a symlink.

Declaration
void TurnIntoSymlink(string path)
Parameters
Type Name Description
String path

The path of the symlink to create relative to the implementation root.

Exceptions
Type Condition
UnauthorizedAccessException

Access to a resource was denied.

IOException

An IO operation failed.

Extension Methods

BuilderExtensions.Add(IBuilder, DownloadRetrievalMethod, Stream, ITaskHandler, Object)
BuilderExtensions.AddArchive(IBuilder, Archive, Stream, ITaskHandler, Object)
BuilderExtensions.Add(IBuilder, RetrievalMethod, ICommandExecutor, ITaskHandler)
BuilderExtensions.Add(IBuilder, DownloadRetrievalMethod, ICommandExecutor, ITaskHandler, String)
BuilderExtensions.CopyFrom(IBuilder, CopyFromStep, ITaskHandler)
BuilderExtensions.BuildDirectory(IBuilder, String)
BuilderExtensions.AddFile(IBuilder, SingleFile, Stream)
BuilderExtensions.Remove(IBuilder, RemoveStep)
BuilderExtensions.Rename(IBuilder, RenameStep)
BuilderExtensions.CopyFrom(IBuilder, CopyFromStep, String, ITaskHandler)
In This Article
Back to top Copyright Bastian Eicher et al