Announcement

Collapse
No announcement yet.

script to check for directory in subversion

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 ?

  • #2
    Hi,

    Yes, you can use the svn list command: http://svnbook.red-bean.com/en/1.7/s...vn.c.list.html

    Hope that helps.

    Comment


    • #3
      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 ?

      Comment


      • #4
        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?

        Comment

        Working...
        X