Reading Directory Structure 
Author Message
 Reading Directory Structure

Greetings,
Can someone provide an example in which perl is to read the directory
structure and put into an array the files it finds?

Any help would be greatly appreciated.
Regards,
Jum



Mon, 25 Jul 2005 06:58:09 GMT  
 Reading Directory Structure

Quote:

> Can someone provide an example in which perl is to read the directory
> structure and put into an array the files it finds?

'perldoc File::Find'
and then just use something like

in the wanted function to capture all the file names.
Depending on what you intend to do you may want to prepend the directory
path first.

jue



Mon, 25 Jul 2005 10:17:46 GMT  
 Reading Directory Structure

Quote:

> > Can someone provide an example in which perl is to read the directory
> > structure and put into an array the files it finds?

> 'perldoc File::Find'
> and then just use something like

> in the wanted function to capture all the file names.
> Depending on what you intend to do you may want to prepend the directory
> path first.

> jue

Thanks Jue!


Tue, 26 Jul 2005 05:52:52 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Help Reading a directory structure

2. Reading directories, entering directories, chaning file permissions...

3. Loop thru directory structure

4. Using hashed directory structures

5. Help with Perl Script to build linked HTML from directory structure

6. Hash function to spread files in a directory structure

7. ftp-upload directory structure

8. Perl Directory Structure

9. Perl search for directory structure

10. pod2html for all files in a directory structure

11. Getting NTFS Directory structure size

12. Dynamic site tree based on directory structure

 

 
Powered by phpBB® Forum Software