Skip directly to content

SVN: Failed to add directory 'files': object of the same name already exists

on Mon, 02/01/2010 - 07:06

On a Macbook, "svn update" invariably gives the following error.

sudeep-goyals-macbook:default sudeepgoyal$ svn up
A    Files
A    Files/tmp
A    Files/.htaccess
svn: Failed to add directory 'files': object of the same name already exists.

Linux server where the SVN repository resides typically lets you create files with case-sensitive names. Therefore, "files" and "Files" can co-exist in the same directory. Mac or Windows does not allow case-sensitive files or directories.

sudeep-goyals-macbook:default sudeepgoyal$ mkdir files
mkdir: files: File exists

Solution:

Rename the folder Files to Files1 or remove it from the SVN repository.

sudeep-goyals-macbook:tweentribune sudeepgoyal$ svn delete -m "delete "  svn://xxxxx/svnrepos/xxx/sites/xxxx/Files

Helpful Link: If you are looking to solve the error: svn is already under version control, go to this link.