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

P4 CLI Documentation | 2026.1

# Deal with spaces in filenames and directories

Use quotation marks to enclose files or directories that contain spaces.

Example: Dealing with spaces in filenames and directories

Joe wants to map files in the depot into his workspace, but some of the paths contain spaces:

    View:
        "//Acme/Release 2.0/..."   //joe/current/...
        "//Acme/Release 1.1/..."   "//joe/Patch Release/..."
        //Acme/webstats/2011/...   "//joe/2011 Web Stats/..."

By placing quotation marks around the path components on the server side, client side, or both sides of the mappings, Joe can specify file names and/or directory components that contain spaces.

For more information, see Spaces in filenames, pathnames, and identifiers.

Your search for returned results