gwhite has asked for the wisdom of the Perl Monks concerning the following question:
I have a directory structure that is basically
client1
-project1
-project2
client2
-project1
and so on, with each client having a variable number of projects.
Once a client is inactive for a period of time we move their project to archive and delete from the active fileserver, occasionally, between the time we mark a client for archival and get the DVD burned, a new project for that client will be started. The archival is based on client, but I want to create a deletion list based on client/project. So we don't delete one of these recent projects.
My delete list should look like
rm /client1/project1
rm /client1/project2
what I can't get figured out is how to easily retrieve project directory names in the series of client directories. I am trying File::Find, but can't figure out the wanted piece to give me what I want. I would appreciate a steer in the right direction.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get list of first level subdirectories
by socketdave (Curate) on Jul 21, 2005 at 14:14 UTC | |
|
Re: Get list of first level subdirectories
by sh1tn (Priest) on Jul 21, 2005 at 14:43 UTC | |
by itub (Priest) on Jul 21, 2005 at 15:25 UTC | |
by holli (Abbot) on Jul 21, 2005 at 15:57 UTC | |
by sh1tn (Priest) on Jul 21, 2005 at 20:03 UTC | |
by itub (Priest) on Jul 21, 2005 at 16:56 UTC | |
|
Re: Get list of first level subdirectories
by radiantmatrix (Parson) on Jul 21, 2005 at 20:42 UTC |