[This is preliminary documentation and is subject to change.]
The Path type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Path(String) | CTor from String | |
| Path(Path) | Copy CTor |
Methods
| Name | Description | |
|---|---|---|
| Copy | Copies file or directory from one location to another | |
| CreateDirectory | Creates all directories and subdirectories as specified by Path. | |
| Delete | Deletes item represented by Path Directories are deleted recursivelly | |
| Equals | (Overrides Object..::..Equals(Object).) | |
| ExistsPath | Gets value indicating if file or directory represented by this path exists | |
| GetDirectory | Gets directory represented by current instance (if exists) | |
| GetEnumerator()()()() | Returns an enumerator that iterates through the all files and folder under current folder recursivelly. Current folder is included in enumeration. Files are listed before folders at each level. | |
| GetEnumerator(Boolean) | Returns an enumerator that iterates through the all files and folders under current folder recursivelly. Current folder is not included in enumeration. | |
| GetFile | Gets file represented by current instance (if exists) | |
| GetFiles()()()() | Gets all files in this folder | |
| GetFiles(String) | Gets all files in this folder restricted by mask | |
| GetFiles(array<String>[]()[][]) | Gets all files in this folder restricted by masks | |
| GetFiles(Func<(Of <<'(Path, Boolean>)>>)) | Gets all files in this folder restricted by condition | |
| GetFullPath | Returns the absolute path for the Path. | |
| GetChildren()()()() | Gets all files and folders in this folder | |
| GetChildren(String) | Gets all files and folders in this folder restricted by mask | |
| GetChildren(array<String>[]()[][]) | Gets all files and folders in this folder restricted by mask | |
| GetChildren(Func<(Of <<'(Path, Boolean>)>>)) | Gets all files and folders in this folder restricted by condition | |
| GetChildren(array<Func<(Of <<'(Path, Boolean>)>>)>[]()[][]) | Gets all files and folders in this folder restricted by AND operation among given conditions | |
| GetSubFolders()()()() | Gets all folders in this folder | |
| GetSubFolders(String) | Gets all subfolders in this folder restricked by mask | |
| GetSubFolders(array<String>[]()[][]) | Gets all subfolders in this folder restricked by masks | |
| GetSubFolders(Func<(Of <<'(Path, Boolean>)>>)) | Gets all subfolders in this folder restricked by condition | |
| IsChildOf | Indicates wheather current instance is sub-path of passed instance | |
| IsparentOf | Indicates wheather current instance is parent of passed instance | |
| Join | Creates path from its segments | |
| Move | Moves file or directory from one location to another | |
| Normalize | Normalizes path to use only one type of directory separators | |
| Random | Returns random path | |
| TempFile | Returns path of a uniquely named, zero-byte temporary file on disk | |
| ToString | (Overrides Object..::..ToString()()()().) | |
| Up | Removes Levels parts from end of path |
Operators
| Name | Description | |
|---|---|---|
| Addition(String, Path) | Conbines to paths - Left and right part | |
| Addition(Path, String) | Conbines to paths - Left and right part | |
| Addition(Path, Path) | Conbines to paths - Left and right part | |
| Equality | Compares two Paths for equivalence | |
| ExplicitNarrowingExplicitExplicitExplicit(String to Path) | ||
| GreaterThan | Gets value indicating if Child is child address of Parent | |
| ImplicitWideningImplicitImplicitImplicit(Path to String) | ||
| Inequality | Compares two Paths for inequivalence | |
| LessThan | Gets value indicating if Child is child address of Parent | |
| Subtraction | Removes Levels parts from end of Path |
Extension Methods
| Name | Description | |
|---|---|---|
| Copy | Recursivelly copies directory structure from one directory to another (Defined by FileSystemOperations.) | |
| GetIcon | Gets icon for given file or folder (including drive and UNC share or server) (Defined by FileSystemTools.) | |
| IndexOf<(Of <<'(Path>)>>) | Gets index of first occurence of given item in given collection (Defined by EnumerableT.) | |
| Last<(Of <<'(Path>)>>) | Gets last item in collection (Defined by CollectionTools.) | |
| ShowProperties | Shows system file properties dialog for given file or directory (Defined by FileSystemTools.) | |
| UnionAll<(Of <<'(Path>)>>)(array<IEnumerable<(Of <<'(Path>)>>)>[]()[][]) | Overloaded. Creates union of given collection with other given collections (Defined by EnumerableT.) | |
| UnionAll<(Of <<'(Path>)>>)(IEnumerable<(Of <<'(IEnumerable<(Of <<'(Path>)>>)>)>>)) | Overloaded. Creates union of given collection with other given collections (Defined by EnumerableT.) |
Properties
| Name | Description | |
|---|---|---|
| ContainsInvalidPathChar | Gets value indicating wheather Path contains¨character not allowed in path as defined by GetInvalidPathChars()()()() | |
| Depth | Number of segments of current path | |
| DirectoryName | Directory information of Path | |
| Exists | Checks wheather path represented by current instance exists | |
| Extension | Returns the extension of the Path. | |
| FileName | Returns the file name and extension of the Path. | |
| FileNameWithoutExtension | Returns the file name of the Path without the extension. | |
| HasExtension | Determines whether a path includes a file name extension. | |
| IsDirectory | Checks wheather path represented by current instance exists and is directory | |
| IsFile | Check wheather path represented by current instace exists and is file | |
| IsRooted | Gets a value indicating whether the specified Path contains absolute or relative path information. | |
| IsUNC | Windows-specific: Gets value indicating if this path is an UNC path | |
| IsUNCServer | Windows-specific: Gets value indicating if current path represents path to UNC server | |
| IsVolume | Gets value indicatiing if path represents volume | |
| Path | String representaion of path | |
| PathRoot | Gets the root directory information of the Path. | |
| Segments | Gets segmnents (directories) of path |
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| IEnumerable..::..GetEnumerator | Obsolete. | |
| IPathProvider..::..Path |