Check if folder is versioned in Subversion using SharpSvn

Viewed 472

I am using SharpSvn library for accessing Subversion. I have the requirement of checking if a specific folder is part of the subversion repository.

After some googling, I found the below code -

SvnClient client = new SvnClient();
Collection<SvnStatusEventArgs> args2;
bool result1 = client.GetStatus(@"D:\SVNMapping\demo\trunk\NewFolder", new SvnStatusArgs(), out args2);

result1 is getting true but args2[0].Versioned value is returned as false. But, the above folder is versioned and I can confirm it based on the icon -

enter image description here

I am not sure what I am missing in this API usage or if the API itself is incorrect for my requirement.

Any help is highly appreciated.

2 Answers
Related