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

Re: How to find whether an subversion element is a directory or file

From: David Weintraub <qazwart_at_gmail.com>
Date: Fri, 17 Oct 2008 13:29:15 -0400

As you already stated, you can do an svn info on that file, and then
check the output. Using the --xml switch might make this a bit easier
for scripts.

Also, if you list a directory, and the file listed ends in a slash,
the file is a directory.

You can also try doing a "svn ls" on that file and see if the output
is the file name or a listing.

If you simply want a recursive "svn ls", use the -R switch. Most
people don't realize that.

--
David Weintraub
qazwart_at_gmail.com
On Fri, Oct 17, 2008 at 11:25 AM, vinay i <vinay.indresh_at_gmail.com> wrote:
> Hi All
> Is there a way to find out whether an subversion element is a directory or
> file? I don't have a working directory. I want to run a command on the
> repository and find out if it is a file or directory? Is it possible to do
> that?
>
> Thanks
> Vinay
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-17 19:29:41 CEST

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

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