edtFTPnet/Free - Open-source FTP component for .NET | Download

PathUtil Class

Provides methods for dealing with FTP paths.

Definition

Namespace: EnterpriseDT.Util
Assembly: edtFTPnet (in edtFTPnet.dll) Version: 2.2.3.0
C#
public class PathUtil
Inheritance
Object    PathUtil

Constructors

PathUtilInitializes a new instance of the PathUtil class

Properties

DefaultSeparator Separator character as a string (i.e. "/").
DefaultSeparatorChar Separator character (i.e. '/').
WindowsSeparator Separator character as a string (i.e. "\\").
WindowsSeparatorChar Separator character (i.e. '\\').

Methods

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.
EnsureTrailingSeparator(String) Ensures that the last character is a separator character
EnsureTrailingSeparator(Char, String) Ensures that the last character is a separator character.
EqualsDetermines 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.
FinalizeAllows 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
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
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 '/').
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also