Moving Depot Files To A Different Location
There is a known issue in Microsoft's Windows Explorer on Windows 2008, Windows 7 and Windows Vista. If a file is copied with leading spaces, Explorer will strip the leading space before pasting the file.
This can be a problem during a Perforce depot move if Windows Explorer is used to copy archive files for workspace files that have leading spaces.
Depot contains the file "
//depot/dir/ my file.txt
". This is stored in the depot on disk as:
C:\Program Files\Perforce\depot\dir\ my file.txt,v
The C: drive is running out of space, so the Administrator decides to move the depot to another drive, E:\Depot. The depot directory is copied, using Windows Explorer, from C:\Program Files\Perforce\depot to E:\Depot. The file "
" is copied as "
The next time a user attempts to sync the file "
" they see the error:
Librarian checkout depot/dir/ my file.txt failed.
open for read: depot/dir/ my file.txt,v: The system cannot find the file specified.
When the administrator runs p4 verify
the file is shown as "MISSING":
//depot/dir/ my file.txt#1 - add change 19 (text) 82C9B24791E1D165ABE2FCD8D1CD67C4 MISSING!
The solution is to find every occurrence of the renamed archive files on the target depot disk and manually rename the file to include the proper leading spaces.