Re: SVN and PRN and CON files on Windows platform
From: Ryan Schmidt <subversion-2012c_at_ryandesign.com>
Date: Mon, 24 Sep 2012 00:57:38 -0500
On Sep 22, 2012, at 13:26, Alexei Baranov wrote:
> I suppose SVN library for Windows has a bug. I've created file named PRN.RPGLE in working copy on my IBM i system. This file was successfully committed to SVN server. Next, I've tried to check it out to working copy on my Windows PC. Checkout operation was finished with error "Can't move 'C:\alfa03svn\.svn\tmp\svn-7499C3F2' to 'C:\alfa03svn\PRN.RPGLE': Unable to create file because it is already exists". But there is no PRN.RPGLE file in destination directory. The problem was fixed by renaming PRN.RPGLE to PRN#.PRGLE in repository, after this PRN#.RPGLE was checked out successfully. I suppose the problem related with special name PRN (printer device in Windows). I've tried to play with another special name - CON, and I've got the same error.
It's not a bug in Subversion; it's a "feature" (or at least a reality that's unlikely to change) of the Windows operating system. On Windows, you may not create a file whose name is "PRN", with any extension.
According to Wikipedia, the list of filenames you may not use on Windows (with any extension) includes:
CON, PRN, AUX, CLOCK$, NUL
http://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.