[This is preliminary documentation and is subject to change.]
List selected directory paths in the repository.
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2012.2.63.1250 (2012.2.63.1250)
Syntax
C# |
---|
public IList<string> GetDepotDirs( Options options, params string[] dirs ) |
Visual Basic |
---|
Public Function GetDepotDirs ( _ options As Options, _ ParamArray dirs As String() _ ) As IList(Of String) |
Visual C++ |
---|
public: IList<String^>^ GetDepotDirs( Options^ options, ... array<String^>^ dirs ) |
Return Value
Remarks
p4 help dirs
dirs -- List depot subdirectories
p4 dirs [-C -D -H] [-S stream] dir[revRange] ...
List directories that match the specified file pattern (dir).
This command does not support the recursive wildcard (...).
Use the * wildcard instead.
Perforce does not track directories individually. A path is treated
as a directory if there are any undeleted files with that path as a
prefix.
By default, all directories containing files are listed. If the dir
argument includes a revision range, only directories containing files
in the range are listed. For details about specifying file revisions,
see 'p4 help revisions'.
The -C flag lists only directories that fall within the current
client view.
The -D flag includes directories containing only deleted files.
The -H flag lists directories containing files synced to the current
client workspace.
The -S flag limits output to depot directories mapped in a stream's
client view.