Click or drag to resize

PathSpec Class

Describes the path and path type in a file spec.
Inheritance Hierarchy

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2018.4.174.677 (2018.4.174.0677)
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
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(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
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNormalizeDepot
Normalize a depot Path Removes quotes around it.
Protected methodNormalizeLocal
Normalize a Local Path Remove quotes, insure backslashes instead of forward slashes
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