Search code examples
c#svnsharpsvn

How to get SVN repository structure and make search about files and subdirs through web application


I am building a web application to check files and folders existance in SVN repository, I have to access to the repository structure and search files in subdirs. Access is through network. NB : There is no local connection to svn respository, it's a web application. I am using sharpSVN, I found a way to access to local repository but not through a network. Any solutions ?


Solution

  • SharpSvn has various clients. You seem to be using SvnWorkingCopyClient, which requires a local working copy.

    You're looking for just SvnClient:

    var client = new SvnClient();
    SvnInfoEventArgs info;
    client.GetInfo(targetUri, out info);
    

    Now you can read your info from info.