Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2025.2

# p4 dirs (graph)

List repo subdirectories.

## Syntax

    p4 dirs [-i] dir[@reference] ...

Syntax and naming conventions

## Description

List directories that match the specified file pattern (`dir`). This command supports wildcards ('`...`', '`*`').

By default, all directories containing files are listed. If the `dir` argument includes a reference, only directories containing files at that reference are listed.

## Options

Option | Description
--- | ---
`-C` | Display only those directories that are mapped through the current client view.
`-i` | Ignore the case of the directory argument when listing directories in a case-sensitive server. This flag is not compatible with the `-C` option.

## Usage notes

Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required
--- | --- | ---
Yes | No | list protection, read permission

## Examples

`p4 dirs //bruno_1666/*/*/*` | The output might be similar to:
    //depot/projectA/src
    //graphDepot1/projectB/src
    //graphDepot1/projectB/test
See the section Including Graph Depot repos in your client in the topic p4 dirs (graph).
`p4 dirs -i //bruno_1666/*/*/*` | The output might be similar to:
    //graphDepot1/projectB/test
    //Graphdepot1/ProjectB/TEST
See the section Including Graph Depot repos in your client in the topic p4 dirs (graph).

Your search for returned results