Zero Install .NET API 2.20.0
ZeroInstall.Store.FileSystem.ImplFileUtils Class Reference

Provides filesystem helper methods for working with implementation directories. More...

Static Public Member Functions

static bool IsExecutable (string path, ManifestElement? manifestElement=null)
 Checks whether a file is marked as Unix-executable. More...
 
static void SetExecutable (string fullPath)
 Marks a file as Unix-executable. More...
 
static bool IsSymlink (string path, [NotNullWhen(true)] out string? target, ManifestElement? manifestElement=null)
 Checks whether a file is a symbolic link. More...
 
static void CreateSymlink (string sourcePath, string targetPath)
 Creates a new symbolic link to a file or directory. More...
 

Detailed Description

Provides filesystem helper methods for working with implementation directories.

Member Function Documentation

◆ CreateSymlink()

static void ZeroInstall.Store.FileSystem.ImplFileUtils.CreateSymlink ( string  sourcePath,
string  targetPath 
)
inlinestatic

Creates a new symbolic link to a file or directory.

Parameters
sourcePathThe path of the link to create.
targetPathThe path of the existing file or directory to point to (relative to sourcePath ).

◆ IsExecutable()

static bool ZeroInstall.Store.FileSystem.ImplFileUtils.IsExecutable ( string  path,
ManifestElement?  manifestElement = null 
)
inlinestatic

Checks whether a file is marked as Unix-executable.

Parameters
pathThe path of the file to check.
manifestElementThe file's equivalent manifest entry, if available.
Returns
true if path points to an executable; false otherwise.

◆ IsSymlink()

static bool ZeroInstall.Store.FileSystem.ImplFileUtils.IsSymlink ( string  path,
[NotNullWhen(true)] out string?  target,
ManifestElement?  manifestElement = null 
)
inlinestatic

Checks whether a file is a symbolic link.

Parameters
pathThe path of the file to check.
manifestElementThe file's equivalent manifest entry, if available.
targetReturns the target the symbolic link points to if it exists.
Returns
true if manifestElement points to a symbolic link; false otherwise.

◆ SetExecutable()

static void ZeroInstall.Store.FileSystem.ImplFileUtils.SetExecutable ( string  fullPath)
inlinestatic

Marks a file as Unix-executable.

Parameters
fullPathThe absolute path of the file.

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