简体   繁体   中英

C# P4API - How would i get the workspace path from depot path

如果给定仓库路径,是否有任何命令会返回工作区路径?

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM