Read recursively a subdirectory

View: New views
2 Messages — Rating Filter:   Alert me  

Read recursively a subdirectory

by chaniat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

I am using SVNKit 1.1.7

With this API, I am able to read the content of the tags directory through the http protocol.

Now, I would like to read recurvively all entries of one subdirectory (eg tags/1.2.3)

Could you help me?

Re: Read recursively a subdirectory

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

SVNRepository.getDir is not recursive, so you'll have to implement
recursiveness by yourself (collect dir entries for path, than again call
getDir for each directory entry path [parent entry path + "/" + entry
name]).

Alternatively you may use SVNLogClient.doList(SVNURL url, ...) method,
that supports "recursive" option - this is equivalent of "svn list [-R]
URL" command.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

chaniat wrote:

> Hello
>
> I am using SVNKit 1.1.7
>
> With this API, I am able to read the content of the tags directory through
> the http protocol.
>
> Now, I would like to read recurvively all entries of one subdirectory (eg
> tags/1.2.3)
>
> Could you help me?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...