C# Class NanoByte.Common.Native.CygwinUtils

Provides access to Cygwin-related filesystem features. Cygwin provides Unix-like functionality on Windows systems.
Afficher le fichier Open project: nano-byte/common Class Usage Examples

Méthodes publiques

Méthode Description
CreateSymlink ( [ sourcePath, [ targetPath ) : void

Creates a new Cygwin symbolic link (http://cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks).

IsSymlink ( [ path ) : bool

Checks whether a file is a Cygwin symbolic link (http://cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks).

IsSymlink ( [ path, string &target ) : bool

Checks whether a file is a Cygwin symbolic link (http://cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks).

Private Methods

Méthode Description
HasSystemAttribute ( string path ) : bool

Checks whether a file has the FileAttributes.System attribute set. Always true on non-Windows systems since they do not expose this attribute, so we assume it might be set.

Method Details

CreateSymlink() public static méthode

Creates a new Cygwin symbolic link (http://cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks).
There was an IO problem writing the file. Write access to the file was denied. This method is called on a platform other than Windows.
public static CreateSymlink ( [ sourcePath, [ targetPath ) : void
sourcePath [ The path of the link to create.
targetPath [ The path of the existing file or directory to point to (relative to ).
Résultat void

IsSymlink() public static méthode

Checks whether a file is a Cygwin symbolic link (http://cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks).
There was an IO problem reading the file. Read access to the file was denied.
public static IsSymlink ( [ path ) : bool
path [ The path of the file to check.
Résultat bool

IsSymlink() public static méthode

Checks whether a file is a Cygwin symbolic link (http://cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks).
There was an IO problem reading the file. Read access to the file was denied.
public static IsSymlink ( [ path, string &target ) : bool
path [ The path of the file to check.
target string Returns the target the symbolic link points to if it exists.
Résultat bool