dirs -- List subdirectories of a given depot directory p4 dirs [ -C -D -H ] dir[revRange] ... List any directories matching the file pattern dir. Because of implementation details, 'p4 dirs' does not allow the ... wildcard. Use the * wildcard instead. Perforce does not track directories per se, but instead considers a path a directory if there are any undeleted files with that path as a prefix. If the dir argument includes a revision range, then only directories with files of those revisions are listed. Normally directories with any files are listed. See 'p4 help revisions' for help specifying revisions. The -C flag limits the output to directories that are mapped on the current client. The -D includes directories with only deleted files. The -H flag lists directories of files on the 'have' list.