Table of Contents

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

Creates a new symbolic link to a file or directory.

public static void CreateSymlink(string sourcePath, string targetPath)

Parameters

sourcePath string

The path of the link to create.

targetPath string

The 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 string

The path of the file to check.

manifestElement ManifestElement

The file's equivalent manifest entry, if available.

Returns

bool

true if path points to an executable; false otherwise.

Checks whether a file is a symbolic link.

public static bool IsSymlink(string path, out string? target, ManifestElement? manifestElement = null)

Parameters

path string

The path of the file to check.

target string

Returns the target the symbolic link points to if it exists.

manifestElement ManifestElement

The file's equivalent manifest entry, if available.

Returns

bool

true if manifestElement points to a symbolic link; false otherwise.

SetExecutable(string)

Marks a file as Unix-executable.

public static void SetExecutable(string fullPath)

Parameters

fullPath string

The absolute path of the file.