Click or drag to resize

Path Class

Methods to perform various operations on strings resembling file paths.
Inheritance Hierarchy
SystemObject
  Fusee.Base.CommonPath

Namespace:  Fusee.Base.Common
Assembly:  Fusee.Base.Common (in Fusee.Base.Common.dll) Version: 0.7.0.0 (0.7.0.0)
Syntax
C#
public static class Path

The Path type exposes the following members.

Methods
  NameDescription
Public methodStatic memberChangeExtension
Changes the file extension (".txt") of a path.
Public methodStatic memberCombine(String)
Combines an arbitrary number of paths. Considers potential trailing directory separators.
Public methodStatic memberCombine(String, String)
Combines two paths. Considers potential trailing directory separators.
Public methodStatic memberCombine(String, String, String)
Combines three paths. Considers potential trailing directory separators.
Public methodStatic memberCombine(String, String, String, String)
Combines three paths. Considers potential trailing directory separators.
Public methodStatic memberGetDirectoryName
Extracts the directory name from a given path (which is potentially a path to a file).
Public methodStatic memberGetExtension
Retrieves the file extension (e.g. ".txt") from a given path.
Public methodStatic memberGetFileName
Retrieves a file name from the given path.
Public methodStatic memberGetFileNameWithoutExtension
Retrieves the file name without extension from a given path.
Public methodStatic memberGetInvalidFileNameChars
Gets the invalid file name chars.
Public methodStatic memberGetInvalidPathChars
Gets the invalid path chars.
Public methodStatic memberGetPathRoot
Retrieves the path root from a given path.
Public methodStatic memberHasExtension
Determines whether the specified path has an extension.
Public methodStatic memberIsPathRooted
Determines whether the specified path has a root.
Top
Fields
  NameDescription
Public fieldStatic memberAltDirectorySeparatorChar
The alternative directory separator character ('/' on windows).
Public fieldStatic memberDirectorySeparatorChar
The directory separator character ('\' on windows, '/' on most other platforms).
Public fieldStatic memberPathSeparator
The path separator character (';' on most platforms)
Public fieldStatic memberVolumeSeparatorChar
The volume separator character (':' on windows).
Top
See Also