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