Click or drag to resize

PathSpec Class

Describes the path and path type in a file spec.
Inheritance Hierarchy
SystemObject
  Perforce.P4PathSpec
    Perforce.P4ClientPath
    Perforce.P4DepotPath
    Perforce.P4LocalPath

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.258.5793
Syntax
public abstract class PathSpec

The PathSpec type exposes the following members.

Constructors
  NameDescription
Protected methodPathSpec
Default Constructor
Public methodPathSpec(String)
Construct a PathSpec from a string
Top
Properties
  NameDescription
Public propertyPath
Property to access Path string
Top
Methods
  NameDescription
Public methodEquals
Compare one PathSpec with another
(Overrides ObjectEquals(Object).)
Public methodStatic memberEscapePath
Escape a string path Escapes the Perforce Special characters * # @ and %
Public methodStatic memberEscapePaths(IListString)
Escape a list of string paths.
Public methodStatic memberEscapePaths(String)
Escape an array of string paths
Protected methodFinalize (Inherited from Object.)
Public methodGetDirectoryName
Return the Path Name from
Public methodGetFileName
Return the File name from this PathSpec
Public methodGetHashCode
Get HashCode for PathSpec
(Overrides ObjectGetHashCode.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodNormalizeDepot
Normalize a depot Path Removes quotes around it.
Protected methodNormalizeLocal
Normalize a Local Path Remove quotes, insure proper OS path separators
Public methodToString
Return a string from a PathSpec
(Overrides ObjectToString.)
Public methodStatic memberUnescapePath
Unescape a string path UnEscapes the Perforce Special characters * # @ and %
Public methodStatic memberUnescapePaths(IListString)
Unescape a list of string paths
Public methodStatic memberUnescapePaths(String)
Unescape an array of string paths
Top
Operators
See Also