[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: vinay i <vinay.indresh_at_gmail.com>
Date: Fri, 17 Oct 2008 23:16:12 +0530

Thanks David. 2nd option looks neater.

-Vinay

On Fri, Oct 17, 2008 at 10:59 PM, David Weintraub <qazwart_at_gmail.com> wrote:

> 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
> >
>
Received on 2008-10-17 19:46:40 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.