script to check for directory in subversion
is there a command to check whether a folder or file already exists in subversion ? Currently I checkout the folder and do a check that way. Is there a way to do it through an svn command ?
Hi, Yes, you can use the svn list command: http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.list.html Hope that helps.
Hi, That list command gives an error when the directory does not exist. That only works if the directory already exist. How do I handle the error when the directory does not exist ?
I'm afraid that means the command is working as it's supposed to, but you can run the command on the root directory and it'll list the entire contents of the repository for you - you can then grep the results or pipe them into a text file to search them if that makes it easier?
1-4 of 4
Reply to this discussion
You cannot edit posts or make replies: You should be logged in before you can post.