1

Are there any commands that would return the workspace path if given the depot path?

ghost654
  • 161
  • 2
  • 18

1 Answers1

2

For a synced file, p4 have is the canonical/simplest way to find out the local path given a depot path. p4 fstat will also work.

For a file that has not yet been synced p4 have will return nothing, but p4 where will show you where any given path is mapped to.

For cases where a file has been synced but the mapping has changed since then, p4 have and p4 where will show you two different things (have shows the path you have the file at currently, where shows where it will go the next time you sync).

Samwise
  • 68,105
  • 3
  • 30
  • 44