Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2. Working with Files > 2.4. Local Syntax, Wildcard Expansion, and Special Char...

Local Syntax, Wildcard Expansion, and Special Characters

Once you have files in your workspace, refering to them with Perforce filespec syntax may be a bit confusing. However, you can also use the syntax native to your local machine to refer to workspace files. If your workspace is on Windows, for example, you can refer to a file with local syntax like:

c:\ws\projectA\www\index.html

For its internal operations, Perforce translates that to a depot filespec like:

//depot/projectA/www/index.html

(The actual location of the file in the depot is determined by the workspace view.)

If your current directory is beneath your workspace root, you can also use relative filenames. For example, if you’re in the workspace directory mapped to the depot’s //depot/projectA/www directory, you can use a command like:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint