C# 클래스 NanoByte.Common.Native.CygwinUtils

Provides access to Cygwin-related filesystem features. Cygwin provides Unix-like functionality on Windows systems.
파일 보기 프로젝트 열기: nano-byte/common 1 사용 예제들

공개 메소드들

메소드 설명
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).

비공개 메소드들

메소드 설명
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.

메소드 상세

CreateSymlink() 공개 정적인 메소드

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 ).
리턴 void

IsSymlink() 공개 정적인 메소드

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.
리턴 bool

IsSymlink() 공개 정적인 메소드

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.
리턴 bool