Re: exclusion in file patterns

Tim Hemel <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
On Thu, Sep 11, 2003 at 05:51:40PM +0200, Bram Moolenaar wrote:
> 
> Tim Hemel wrote:
> 
> I think the :tree command comes closest:
> 
> 	http://www.a-a-p.org/exec/ref-commands.html#cmd-tree
> 
> It's strange that there is no Python function for this.
> 
> I was thinking of improving the :tree command yesterday.  If you run
> into something you can't do what you want, make suggestions.

The problem with the tree command is that when I use my filespec as an argument
to certain actions, I have to use a separate :tree command. That forces me
to express myself in terms of commands, instead of thinking in terms of
filespecs.
If I could make a filespec that gets all files in a directory recursively, and
where I can exclude certain files, that would be a lot nicer. It's not hard
to write the Python code to get these files, but how would one express it in
aap syntax?

FILES = tree("www/*",exclude="CVS,AAPDIR,*.bak")

> -- 
> It is illegal for a driver to be blindfolded while operating a vehicle.
> 		[real standing law in Alabama, United States of America]

Tim

-- 
Zen Microsystems: we're the om in .commmmmmmmm...


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.