DevPinoy.org
A Filipino Developers Community

>>> First two to make 3 wins! <<<

"A subdirectory or file <name> already exists" caused a failing build
we've all seen why some of the keywords back in the DOS days (CON, COM1, COM2, etc.) are not allowed as filenames or folder names (directory names for the oldies hehehe) in the local community thread.  do you also know that you can't have the same name for a subfolder or a file in the same folder?  logical but i did not know it until yesterday.  try the following:

  1. goto command prompt (type cmd in the run dialog)
  2. copy con temp
  3. type in anything in the console which will be the contents of the temp file, end it by pressing F6 then enter.
  4. make sure that a temp file is created by issuing a dir command.
  5. md temp

you'll be greeted with a message "A subdirectory or file <name> already exists."

i discovered this yesterday when our build server suddenly stopped building.  eventhough we issued a force build, it will try to build for a few seconds then revert back to sleep mode.  i tried to access its log file, which is currently at 200 megabytes since june 2005.  they did not configure it to be a rollingfile just like log4net if there exists one in the thoughtworks logger.

i discovered that subversion could not create a folder from repository since a file of the same name already exists.  this was caused by a post build command where a file is supposed to be copied to a folder but the developer who checked the whole suite forgot to add the said folder in his commit resulting in the creation of a dummy file due to the issued copy command.

Posted 08-01-2006 6:38 PM by jokiz
Filed under: , ,

Comments

bonskijr wrote re: "A subdirectory or file <name> already exists" caused a failing build
on 08-01-2006 3:26 AM
i think that makes sense since a directory is essentially a file with  an(hidden) attribute <D> so it's like 2 files on the same location ....
jokiz wrote re: "A subdirectory or file <name> already exists" caused a failing build
on 08-01-2006 4:00 AM
never really bothered with the documentation of dir /ad.  but i would really be interested in some details of the file system.
cruizer wrote re: "A subdirectory or file <name> already exists" caused a failing build
on 08-01-2006 7:11 AM
it's been this way since the days of the 12-bit FAT on floppy disks :) subdirectory entries on the FAT are virtually the same as file entries except that the directory attribute is set...
jokiz wrote re: "A subdirectory or file <name> already exists" caused a failing build
on 08-02-2006 7:18 AM
it's better late than sorry (as a forumer says it), :p

Copyright DevPinoy 2005-2008