logo
  • About us
  • What we do
  • Our product
  • Recent work
  • Contact

Feedback

In Focus

  • Flash XML slideshow
  • Database training

Deleting symlinks with SVN

Beware of deleting symlinks with SVN

The remove unix command (rm) is capable of safely deleting symlinks

rm symlink

but not

rm symlink/

as including the trailing slash tries to delete the directory and therefore throws an error

rm: cannot remove `one/`: Is a directory

svn delete symlink returns an error message that makes me very nervous, saying that it can't delete a file from within the directory.

It suggests using --force, but I think that might destroy the symlink and its target directory.

  • Tech report
 

 

 

Copyright 2007 Lightenna Limited

  • About us
  • What we do
  • Our product
  • Recent work
  • Contact