Re: Getting filenames from a directory & sub directories

new topic     » goto parent     » topic index » view thread      » older message » newer message

Tony Steward wrote:
> 
> Hello all,
> Any got an example on how I might choose A directory & get all file
> names in that directory & all sub directories?
> 

I'll assume Windows and not DOS or Linux.

I'll also assume win32lib.ew as well, okay?

Given that, have a look at the "selectFolder" demo program. This will
show one method of choosing a folder.

Once you have the folder name, to get all file and sub-folder names,
you use the dir() built-in function. This only works on a single
level of folder. To search down sub-folders, either use a recursive
routine or have a look at the "walk_dir()" built-in function.

Both dir() and walk_dir() come with Euphoria.

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu