Re: walk_dir issue
- Posted by Brian Broker <bkb at cnw.com> Oct 19, 2004
- 542 views
Derek Parnell wrote: > > I'm not sure if this is a bug or design feature but if you pass > a path with wildcards to walk_dir, the routine_id that it calls > receives a Path parameter with the wildcard specification included. > > For example: > > res = walk_dir("C:\\temp\\test.*", routine_id("dirfunc"), 1) > > Then the routine 'dirfunc' gets "C:\temp\test.*" in the path name > parameter. I was expecting it to get "C:\temp" instead. > > -- > Derek Parnell > Melbourne, Australia > Actually, the docs state "This routine will "walk" through a directory with path name given by st." It expects a path name and doesn't say anything about supporting wildcard searches. I don't think putting wildcard specs in your PATH environment varible works either (but I haven't bothered checking). -- Brian