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.
In reply to Get list of first level subdirectories by gwhite
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |