Jul 172014
 

subversion may throw the error “File already exists” under some circumstances. This post gives some possible causes for this error and explains how to fix it.

1. Trying to import a symlink to a directory

This is a likely scenario where this kind of error may happen: You are developing an application “myapp”. The directory where the source code is placed is “myapp-x86-1.0”. To avoid having to type the full name, you have created a symlink “myapp -> myapp-x86-1.0”.

If you try to import the source code into subversion using the symlink, you’ll get the error “File already exists”:

To fix this issue, just replace the symlink in the “svn import” command with the actual directory name:

 Posted by at 6:27 am

 Leave a Reply

(required)

(required)