[This is preliminary documentation and is subject to change.]
List selected directory paths in the repository.Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2011.1.34.7706 (2011.1.34.7706.BETA)
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
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
The -D flag includes directories containing only deleted files.
The -H flag lists directories containing files synced to the current
The -S flag limits output to depot directories mapped in a stream's