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
sourcePath
stringThe path of the link to create.
targetPath
stringThe 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
path
stringThe path of the file to check.
manifestElement
ManifestElementThe file's equivalent manifest entry, if available.
Returns
- bool
true
ifpath
points to an executable;false
otherwise.
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
path
stringThe path of the file to check.
target
stringReturns the target the symbolic link points to if it exists.
manifestElement
ManifestElementThe file's equivalent manifest entry, if available.
Returns
- bool
true
ifmanifestElement
points to a symbolic link;false
otherwise.
SetExecutable(string)
Marks a file as Unix-executable.
public static void SetExecutable(string fullPath)
Parameters
fullPath
stringThe absolute path of the file.