Perforce Public Knowledge Base - Windows 2008, Windows 7 and Vista Explorer Copy Strips Leading Spaces
× PRODUCTS SOLUTIONS CUSTOMERS LEARN SUPPORT
Downloads Company Partners Careers Contact Free Trials
Menu Search
Perforce
Reset Search
 

 

Article

Windows 2008, Windows 7 and Vista Explorer Copy Strips Leading Spaces

« Go Back

Information

 
Problem

This article highlights problems that can be seen when moving Perforce depots using Explorer on Windows 2008, Windows 7 or Windows Vista.

Solution
Moving Depot Files To A Different LocationThere 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.

Example:

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 " my file.txt,v" is copied as "my file.txt,v".

The next time a user attempts to sync the file " my file.txt" 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.
Related Links

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255