RE: Traversing directory and checking attributes

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

Euphoria has a dir() command. It will return a list of all the files and 
directories within a specified directory, including attributes. If you 
specify a file, only information for that file will be returned.

walk_dir() will allow you to traverse the tree. You could write a 
routine to perform a dir() command on any directory listings found with 
walk_dir().

Look in the euphoria library documentation for more info.

Chris

lists at wordit.com wrote:
> Hi,
> 
> I'm new to the Euphoria language. I've written a routine that is too
> slow in Perl and hope Euphoria is faster. I guess this is partly basic
> stuff.
> 
> I need to traverse a directory tree, say C:\, and get the filenames,
> directory names.
> 
> Then I need to get the status of the file attributes archive/read/ etc
> 
> Does anybody have such code already, so I can see whether Euphoria
> might be faster?
> 
> Thanks,
> 
> Marcus
> 
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu