Re: :tree symbolic links, well

calmar <[email protected]> Tue, 28 Feb 2006 12:10:07 +0100
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
On Tue, Feb 28, 2006 at 11:05:37AM +0100, Bram Moolenaar wrote:
> 
> Calmar wrote:
> 
> > Well, I just want to say, I almost needed to :tree over
> > symbolic links ;), if I can say that, and I was almost forced
> > not beeing able to use that very agreable :tree command anymore.
> 
> Can you please give an example?  I don't quite understand what you want
> to do.

Well, sorry:

I have a bunch of files and in the tree structure, there is also
a sybolic link  pointing to another folder with files.

I wanted to work on all those file, getting them with the :tree
command. Since :tree does not follow symbolic links, I had to
separately get the files in the symbolic link (pointing to a
folder):

(two times the use of :tree to get files in the symbolic link
'gal' (pointing to a directory) as well.
,-----------------------------------------------------------------------------
| gall {virtual} :
|     :tree gallery { skipdir = AAPDIR|zzz }
|         :attr { publish = $(ftp_url)%file% } $name
|         :publish $name
|     :tree gallery/gal { skipdir = AAPDIR|zzz }
|         :attr { publish = $(ftp_url)%file% } $name
|         :publish $name
`---

So I'm just pointing out, a follow-symbolic-link flag for :tree
might be a good idea maybe? (well, I solved it in my case with 2
:tree statements, what is ok as well (as long there are not more
symbolic links folders, I think))

Cheers and thanks,
marco candrian

-- 
  calmar

          (o_  It rocks: LINUX + Command-Line-Interface
          //\
          V_/_                     http://www.calmar.ws


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642