1. Getting filenames from a directory & sub directories

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

-- 
Regards
Tony Steward

IF IT IS TO BE IT IS UP TO ME!

new topic     » topic index » view message » categorize

2. Re: Getting filenames from a directory & sub directories

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 message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu