The PathUtil type exposes the following members.

Constructors

  NameDescription
Public methodPathUtil
Initializes a new instance of the PathUtil class

Methods

  NameDescription
Public methodStatic memberCombine(String, String)
Combines two paths.
Public methodStatic memberCombine(Char, String, String)
Combines two paths.
Public methodStatic memberCombine(String, String, array<String>[]()[][])
Combines an arbitrary number of paths.
Public methodStatic memberCombine(Char, String, String, array<String>[]()[][])
Combines an arbitrary number of paths.
Public methodStatic memberEnsureLeadingSeparator(String)
Ensures that the first character is a separator character
Public methodStatic memberEnsureLeadingSeparator(Char, String)
Ensures that the first character is a separator character.
Public methodStatic memberEnsureTrailingSeparator(String)
Ensures that the last character is a separator character
Public methodStatic memberEnsureTrailingSeparator(Char, String)
Ensures that the last character is a separator character.
Public methodEquals (Inherited from Object.)
Public methodStatic memberExplode(String)
Splits the path into parts.
Public methodStatic memberExplode(Char, String)
Splits the path into parts.
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberFix(String)
Cleans up a path such that, for example, "/A/B/../C" becomes "/A/C".
Public methodStatic memberFix(array<String>[]()[][])
Cleans up a path such that, for example, "/A/B/../C" becomes "/A/C".
Public methodStatic memberFix(Char, String)
Cleans up a path such that, for example, "/A/B/../C" becomes "/A/C".
Public methodStatic memberFix(Char, array<String>[]()[][])
Cleans up a path such that, for example, "/A/B/../C" becomes "/A/C".
Public methodStatic memberGetAbsolutePath(String, String)
Return the fixed absolute path for the given directory based on the given base directory.
Public methodStatic memberGetAbsolutePath(Char, String, String)
Return the fixed absolute path for the given directory based on the given base directory.
Public methodStatic memberGetExtension(String)
Gets the extension of the filename.
Public methodStatic memberGetExtension(Char, String)
Gets the extension of the filename.
Public methodStatic memberGetFileName(String)
Gets the file-name without its path.
Public methodStatic memberGetFileName(Char, String)
Gets the file-name without its path.
Public methodStatic memberGetFileNameWithoutExtension(String)
Returns the filename of the specified path without the extension.
Public methodStatic memberGetFileNameWithoutExtension(Char, String)
Returns the filename of the specified path without the extension.
Public methodStatic memberGetFolderPath(String)
Gets the folder-path without the file-name
Public methodStatic memberGetFolderPath(Char, String)
Gets the folder-path without the file-name. If there are no separators in the path, return the path as is
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberImplode(array<String>[]()[][])
Combines parts into a single path.
Public methodStatic memberImplode(array<String>[]()[][], Int32)
Combines parts into a single path.
Public methodStatic memberImplode(array<String>[]()[][], Int32, Int32)
Combines parts into a single path.
Public methodStatic memberIsAbsolute(String)
Indicates whether or not a path is absolute (i.e. starts with '/').
Public methodStatic memberIsAbsolute(Char, String)
Indicates whether or not a path is absolute (i.e. starts with '/').
Public methodStatic memberIsRelative(String)
Indicates whether or not a path is relative (i.e. does not start with '/').
Public methodStatic memberIsRelative(Char, String)
Indicates whether or not a path is relative (i.e. does not start with '/').
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Properties

  NameDescription
Public propertyStatic memberDefaultSeparator
Separator character as a string (i.e. "/").
Public propertyStatic memberDefaultSeparatorChar
Separator character (i.e. '/').
Public propertyStatic memberWindowsSeparator
Separator character as a string (i.e. "\\").
Public propertyStatic memberWindowsSeparatorChar
Separator character (i.e. '\\').

See Also