[This is preliminary documentation and is subject to change.]

The Path type exposes the following members.

Constructors

  NameDescription
Public methodPath(String)
CTor from String
Public methodPath(Path)
Copy CTor

Methods

  NameDescription
Public methodCopy
Copies file or directory from one location to another
Public methodCreateDirectory
Creates all directories and subdirectories as specified by Path.
Public methodDelete
Deletes item represented by Path Directories are deleted recursivelly
Public methodEquals
Determines whether the specified Object is equal to the current Path.
(Overrides Object..::..Equals(Object).)
Public methodExistsPath
Gets value indicating if file or directory represented by this path exists
Public methodGetDirectory
Gets directory represented by current instance (if exists)
Public methodGetEnumerator()()()()
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.
Public methodGetEnumerator(Boolean)
Returns an enumerator that iterates through the all files and folders under current folder recursivelly. Current folder is not included in enumeration.
Public methodGetFile
Gets file represented by current instance (if exists)
Public methodGetFiles()()()()
Gets all files in this folder
Public methodGetFiles(String)
Gets all files in this folder restricted by mask
Public methodGetFiles(array<String>[]()[][])
Gets all files in this folder restricted by masks
Public methodGetFiles(Func<(Of <<'(Path, Boolean>)>>))
Gets all files in this folder restricted by condition
Public methodGetFullPath
Returns the absolute path for the Path.
Public methodGetChildren()()()()
Gets all files and folders in this folder
Public methodGetChildren(String)
Gets all files and folders in this folder restricted by mask
Public methodGetChildren(array<String>[]()[][])
Gets all files and folders in this folder restricted by mask
Public methodGetChildren(Func<(Of <<'(Path, Boolean>)>>))
Gets all files and folders in this folder restricted by condition
Public methodGetChildren(array<Func<(Of <<'(Path, Boolean>)>>)>[]()[][])
Gets all files and folders in this folder restricted by AND operation among given conditions
Public methodGetSubFolders()()()()
Gets all folders in this folder
Public methodGetSubFolders(String)
Gets all subfolders in this folder restricked by mask
Public methodGetSubFolders(array<String>[]()[][])
Gets all subfolders in this folder restricked by masks
Public methodGetSubFolders(Func<(Of <<'(Path, Boolean>)>>))
Gets all subfolders in this folder restricked by condition
Public methodIsChildOf
Indicates wheather current instance is sub-path of passed instance
Public methodIsparentOf
Indicates wheather current instance is parent of passed instance
Public methodStatic memberJoin
Creates path from its segments
Public methodMove
Moves file or directory from one location to another
Public methodNormalize
Normalizes path to use only one type of directory separators
Public methodStatic memberRandom
Returns random path
Public methodStatic memberTempFile
Returns path of a uniquely named, zero-byte temporary file on disk
Public methodToString
Returns a String that represents the current Path.
(Overrides Object..::..ToString()()()().)
Public methodUp
Removes Levels parts from end of path

Operators

  NameDescription
Public operatorStatic memberAddition(String, Path)
Conbines to paths - Left and right part
Public operatorStatic memberAddition(Path, String)
Conbines to paths - Left and right part
Public operatorStatic memberAddition(Path, Path)
Conbines to paths - Left and right part
Public operatorStatic memberEquality
Compares two Paths for equivalence
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(String to Path)
Converts String into Path
Public operatorStatic memberGreaterThan
Gets value indicating if Child is child address of Parent
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(Path to String)
Converts Path into String
Public operatorStatic memberInequality
Compares two Paths for inequivalence
Public operatorStatic memberLessThan
Gets value indicating if Child is child address of Parent
Public operatorStatic memberSubtraction
Removes Levels parts from end of Path

Extension Methods

  NameDescription
Public Extension MethodCopy
Recursivelly copies directory structure from one directory to another
(Defined by FileSystemOperations.)
Public Extension MethodGetIcon
Gets icon for given file or folder (including drive and UNC share or server)
(Defined by FileSystemTools.)
Public Extension MethodIndexOf<(Of <<'(Path>)>>)
Gets index of first occurence of given item in given collection
(Defined by EnumerableT.)
Public Extension MethodLast<(Of <<'(Path>)>>)
Gets last item in collection
(Defined by CollectionTools.)
Public Extension MethodShowProperties
Shows system file properties dialog for given file or directory
(Defined by FileSystemTools.)
Public Extension MethodUnionAll<(Of <<'(Path>)>>)(array<IEnumerable<(Of <<'(Path>)>>)>[]()[][])Overloaded.
Creates union of given collection with other given collections
(Defined by EnumerableT.)
Public Extension MethodUnionAll<(Of <<'(Path>)>>)(IEnumerable<(Of <<'(IEnumerable<(Of <<'(Path>)>>)>)>>))Overloaded.
Creates union of given collection with other given collections
(Defined by EnumerableT.)

Properties

  NameDescription
Public propertyContainsInvalidPathChar
Gets value indicating wheather Path contains¨character not allowed in path as defined by GetInvalidPathChars()()()()
Public propertyDepth
Number of segments of current path
Public propertyDirectoryName
Directory information of Path
Public propertyExists
Checks wheather path represented by current instance exists
Public propertyExtension
Returns the extension of the Path.
Public propertyFileName
Returns the file name and extension of the Path.
Public propertyFileNameWithoutExtension
Returns the file name of the Path without the extension.
Public propertyHasExtension
Determines whether a path includes a file name extension.
Public propertyIsDirectory
Checks wheather path represented by current instance exists and is directory
Public propertyIsFile
Check wheather path represented by current instace exists and is file
Public propertyIsRooted
Gets a value indicating whether the specified Path contains absolute or relative path information.
Public propertyIsUNC
Windows-specific: Gets value indicating if this path is an UNC path
Public propertyIsUNCServer
Windows-specific: Gets value indicating if current path represents path to UNC server
Public propertyIsVolume
Gets value indicatiing if path represents volume
Public propertyPath
String representaion of path
Public propertyPathRoot
Gets the root directory information of the Path.
Public propertySegments
Gets segmnents (directories) of path

Explicit Interface Implementations

See Also