PathUtil Class |
Namespace: EnterpriseDT.Util
The PathUtil type exposes the following members.
| Name | Description | |
|---|---|---|
| DefaultSeparator |
Separator character as a string (i.e. "/").
| |
| DefaultSeparatorChar |
Separator character (i.e. '/').
| |
| SystemSeparatorChar | ||
| WindowsSeparator |
Separator character as a string (i.e. "\\").
| |
| WindowsSeparatorChar |
Separator character (i.e. '\\').
|
| Name | Description | |
|---|---|---|
| Combine(String, String) |
Combines two paths.
| |
| Combine(Char, String, String) |
Combines two paths.
| |
| Combine(String, String, String) |
Combines an arbitrary number of paths.
| |
| Combine(Char, String, String, String) |
Combines an arbitrary number of paths.
| |
| EnsureLeadingSeparator(String) |
Ensures that the first character is a separator character
| |
| EnsureLeadingSeparator(Char, String) |
Ensures that the first character is a separator character.
| |
| EnsureTrailingSeparator(String) |
Ensures that the last character is a separator character
| |
| EnsureTrailingSeparator(Char, String) |
Ensures that the last character is a separator character.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Explode(String) |
Splits the path into parts.
| |
| Explode(Char, String) |
Splits the path into parts.
| |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| Fix(String) |
Cleans up a path such that, for example, "/A/B/../C" becomes "/A/C".
| |
| Fix(String) |
Cleans up a path such that, for example, "/A/B/../C" becomes "/A/C".
| |
| Fix(Char, String) |
Cleans up a path such that, for example, "/A/B/../C" becomes "/A/C".
| |
| Fix(Char, String) |
Cleans up a path such that, for example, "/A/B/../C" becomes "/A/C".
| |
| GetAbsolutePath(String, String) |
Return the fixed absolute path for the given directory based on the given base directory.
| |
| GetAbsolutePath(Char, String, String) |
Return the fixed absolute path for the given directory based on the given base directory.
| |
| GetExtension(String) |
Gets the extension of the filename.
| |
| GetExtension(Char, String) |
Gets the extension of the filename.
| |
| GetFileName(String) |
Gets the file-name without its path.
| |
| GetFileName(Char, String) |
Gets the file-name without its path.
| |
| GetFileNameWithoutExtension(String) |
Returns the filename of the specified path without the extension.
| |
| GetFileNameWithoutExtension(Char, String) |
Returns the filename of the specified path without the extension.
| |
| GetFolderPath(String) |
Gets the folder-path without the file-name
| |
| GetFolderPath(Char, String) |
Gets the folder-path without the file-name. If there are no
separators in the path, return the path as is
| |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetWildcardFilter | ||
| Implode(String) |
Combines parts into a single path.
| |
| Implode(String, Int32) |
Combines parts into a single path.
| |
| Implode(String, Int32, Int32) |
Combines parts into a single path.
| |
| IsAbsolute(String) |
Indicates whether or not a path is absolute (i.e. starts with '/').
| |
| IsAbsolute(Char, String) |
Indicates whether or not a path is absolute (i.e. starts with '/').
| |
| IsRelative(String) |
Indicates whether or not a path is relative (i.e. does not start with '/').
| |
| IsRelative(Char, String) |
Indicates whether or not a path is relative (i.e. does not start with '/').
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| RemoveTrailingSeparator |
Ensures that the last character is a separator character
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |