Re: walk_dir issue
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 19, 2004
- 505 views
Juergen Luethje wrote: > > 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. > > To me it looks like a design feature. In 'lib_u_z.htm#walk_dir' it > reads: "... directory with path name given by st." > > "C:\\temp\\test.*" is not a valid path name on DOS/Windows because of > the '*' that it contains. > In that case its a bug, because it calls my user-defined routine for each matching file in c:\temp. -- Derek Parnell Melbourne, Australia