Hi -

Two questions:

In a recursive search, does the pattern glob apply to the whole
path or just the last element (e.g. filename)?

When dotfiles=true, does it go through '..' and '.' directories
(so that a recursive list loops infinitely?) I hope not.

Two suggestions:

It might be interesting to support a regular expression on the path in addition 
to globbing...

Could you create a version that ran a user function in order
to decide whether or not to return a file or descend when recursing?
Or that sets a variable shared by the iterator to indicate if
something should be returned?


I think that this interface is maybe more complicated than it needs to
be -- perhaps the filtering could be accomplished with a user function
and some nice default functions
and so you wouldn't need so many options (for dotfile, pattern, files, dirs).

Lastly, I think 'find' is a reasonable name for this.

I like the idea!

-michael

On 08/04/2014 07:41 PM, Brad Chamberlain wrote:
>
> Hi Chapel Users (and Developers) --
>
> Over the past month or so, Tim Zakian and I have been working on designing 
> and prototyping a Chapel iterator for the standard library that generates 
> file and directory names from a given start directory, similar to ls [-R], 
> glob, wordexp, listdir, find, and the like.
>
> For those who are interested in weighing in on such a capability, we invite 
> you to review the attached proposal and give us your feedback on what's being 
> proposed and/or any of the open issues listed in the proposal.  We're very 
> interested in your feedback and input.
>
> Our hope is to get this into the upcoming 1.10 release which gives us just 
> over a month to settle on a design and beef up the prototypes to match it.
>
> Thanks very much,
> -Brad


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users

Reply via email to