[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn_client_ls - how can I tell file from dir

From: Barry Scott <barry_at_barrys-emacs.org>
Date: 2004-03-25 01:00:51 CET

If I call svn_client_ls with a path of "foo" I will
get back "foo" if its a file or the contents of "foo" if
its a dir. How can I tell which of the two cases happened?

In svncpp we want to return the expanded path of all
the files returned. In the file case this will return "foo"
and in the dir case we return "foo/file-in-foo".

The problem is the code is returning "foo/foo" in the file
case and I'm not sure how to fix this for wc paths and URLs.
For wc paths I can use svn_wc_entry() to get the kind of the
path. But what would I do for URLs?

The existing code is in

http://svn.collab.net/repos/rapidsvn/trunk/src/svncpp/client_ls.cpp

see Client::ls starting at line 38.

Barry

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 25 01:01:11 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.