Interface IBuilder
- Namespace
- ZeroInstall.Store.FileSystem
- Assembly
- ZeroInstall.Store.dll
Builds a file system directory.
public interface IBuilder : IForwardOnlyBuilder
- Inherited Members
- Extension Methods
Methods
MarkAsExecutable(string)
Marks a previously added file as executable.
void MarkAsExecutable(string path)
Parameters
pathstringThe path of the file to create relative to the implementation root.
Exceptions
- UnauthorizedAccessException
Access to a resource was denied.
- IOException
An IO operation failed.
Remove(string)
Removes a file or directory from the implementation.
void Remove(string path)
Parameters
pathstringThe path of the file or directory relative to the implementation root.
Exceptions
- UnauthorizedAccessException
Access to a resource was denied.
- IOException
An IO operation failed.
Rename(string, string)
Renames a file or directory in the implementation.
void Rename(string path, string target)
Parameters
pathstringThe original path of the file or directory relative to the implementation root.
targetstringThe new path of the file or directory relative to the implementation root.
Exceptions
- UnauthorizedAccessException
Access to a resource was denied.
- IOException
An IO operation failed.
TryAddExternalHardlink(string, FileInfo, bool)
Tries to create a hardlink to an existing file from outside the implementation being built.
bool TryAddExternalHardlink(string path, FileInfo target, bool executable = false)
Parameters
pathstringThe path of the hardlink to create relative to the implementation root.
targetFileInfoThe existing file to hardlink to. Must reside within an allowed root on the same filesystem.
executablebooltrueif the executable bit of the hardlink is set;falseotherwise.
Returns
- bool
trueif the hardlink was created;falseif hardlinks are not supported or the source is outside the allowed root.
Exceptions
- UnauthorizedAccessException
Access to a resource was denied.
- IOException
An IO operation failed.
TurnIntoSymlink(string)
Turns a previously added file into a symlink.
void TurnIntoSymlink(string path)
Parameters
pathstringThe path of the symlink to create relative to the implementation root.
Exceptions
- UnauthorizedAccessException
Access to a resource was denied.
- IOException
An IO operation failed.