C# Class Net.XpFramework.Runner.Paths

Afficher le fichier Open project: xp-framework/xp-runners

Méthodes publiques

Méthode Description
Binary ( ) : string

Return binary file of currently executing process

Compose ( ) : string

Composes a path name of two or more components - varargs

Compose ( Environment special ) : string

Composes a path name of a special folder and a string component

DirName ( string filename ) : string

Returns the directory name of a given file name

Find ( IEnumerable bases, string file ) : string

Find a file inside multiple base paths. See Locate().

Locate ( IEnumerable bases, string files, bool expect ) : IEnumerable

Locate a given file inside multiple base paths. Similar to what is done when looking up program names in $ENV{PATH}.

Resolve ( string path ) : string

Resolve a path. If the path is actually a shell link (.lnk file), this link's target path is used.

ResolveShortcut ( string filename ) : string

Resolves a shell shortcut's target path

Translate ( string root, string paths ) : IEnumerable

Translate a list of paths

Private Methods

Méthode Description
SHGetFolderPath ( IntPtr hwndOwner, int nFolder, IntPtr hToken, int dwFlags, StringBuilder lpszPath ) : int

Method Details

Binary() public static méthode

Return binary file of currently executing process
public static Binary ( ) : string
Résultat string

Compose() public static méthode

Composes a path name of two or more components - varargs
public static Compose ( ) : string
Résultat string

Compose() public static méthode

Composes a path name of a special folder and a string component
public static Compose ( Environment special ) : string
special System.Environment Special Folder from Environment.SpecialFolder enum
Résultat string

DirName() public static méthode

Returns the directory name of a given file name
public static DirName ( string filename ) : string
filename string
Résultat string

Find() public static méthode

Find a file inside multiple base paths. See Locate().
public static Find ( IEnumerable bases, string file ) : string
bases IEnumerable
file string
Résultat string

Locate() public static méthode

Locate a given file inside multiple base paths. Similar to what is done when looking up program names in $ENV{PATH}.
public static Locate ( IEnumerable bases, string files, bool expect ) : IEnumerable
bases IEnumerable
files string
expect bool Whether we expect a non-empty list
Résultat IEnumerable

Resolve() public static méthode

Resolve a path. If the path is actually a shell link (.lnk file), this link's target path is used.
public static Resolve ( string path ) : string
path string
Résultat string

ResolveShortcut() public static méthode

Resolves a shell shortcut's target path
public static ResolveShortcut ( string filename ) : string
filename string
Résultat string

Translate() public static méthode

Translate a list of paths
public static Translate ( string root, string paths ) : IEnumerable
root string
paths string
Résultat IEnumerable