edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Click or drag to resize

PathUtil Class

Provides methods for dealing with FTP paths.
Inheritance Hierarchy
SystemObject
  EnterpriseDT.UtilPathUtil

Namespace:  EnterpriseDT.Util
Assembly:  edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntax
public class PathUtil

The PathUtil type exposes the following members.

Constructors
  NameDescription
Public methodPathUtil
Initializes a new instance of the PathUtil class
Top
Properties
  NameDescription
Public propertyStatic memberDefaultSeparator
Separator character as a string (i.e. "/").
Public propertyStatic memberDefaultSeparatorChar
Separator character (i.e. '/').
Public propertyStatic memberSystemSeparatorChar
Public propertyStatic memberWindowsSeparator
Separator character as a string (i.e. "\\").
Public propertyStatic memberWindowsSeparatorChar
Separator character (i.e. '\\').
Top
Methods
  NameDescription
Public methodStatic memberCombine(String, String)
Combines two paths.
Public methodStatic memberCombine(Char, String, String)
Combines two paths.
Public methodStatic memberCombine(String, String, String)
Combines an arbitrary number of paths.
Public methodStatic memberCombine(Char, String, String, 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
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodStatic memberExplode(String)
Splits the path into parts.
Public methodStatic memberExplode(Char, String)
Splits the path into parts.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFix(String)
Cleans up a path such that, for example, "/A/B/../C" becomes "/A/C".
Public methodStatic memberFix(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, 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
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGetWildcardFilter
Public methodStatic memberImplode(String)
Combines parts into a single path.
Public methodStatic memberImplode(String, Int32)
Combines parts into a single path.
Public methodStatic memberImplode(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
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberRemoveTrailingSeparator
Ensures that the last character is a separator character
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also