Class ImplFileUtils
- Namespace
- ZeroInstall.Store.FileSystem
- Assembly
- ZeroInstall.Store.dll
Provides filesystem helper methods for working with implementation directories.
public static class ImplFileUtils
- Inheritance
-
ImplFileUtils
- Inherited Members
Methods
CreateSymlink(string, string)
Creates a new symbolic link to a file or directory.
public static void CreateSymlink(string sourcePath, string targetPath)
Parameters
sourcePathstringThe path of the link to create.
targetPathstringThe path of the existing file or directory to point to (relative to
sourcePath).
IsExecutable(string, ManifestElement?)
Checks whether a file is marked as Unix-executable.
public static bool IsExecutable(string path, ManifestElement? manifestElement = null)
Parameters
pathstringThe path of the file to check.
manifestElementManifestElementThe file's equivalent manifest entry, if available.
Returns
- bool
trueifpathpoints to an executable;falseotherwise.
IsSymlink(string, out string?, ManifestElement?)
Checks whether a file is a symbolic link.
public static bool IsSymlink(string path, out string? target, ManifestElement? manifestElement = null)
Parameters
pathstringThe path of the file to check.
targetstringReturns the target the symbolic link points to if it exists.
manifestElementManifestElementThe file's equivalent manifest entry, if available.
Returns
- bool
trueifmanifestElementpoints to a symbolic link;falseotherwise.
SetExecutable(string)
Marks a file as Unix-executable.
public static void SetExecutable(string fullPath)
Parameters
fullPathstringThe absolute path of the file.