There's more than one way to do things | |
PerlMonks |
Script to recurse directory down 2 levels and list directors by last modified and sizeby pauloke (Initiate) |
on Dec 04, 2008 at 17:55 UTC ( [id://728044]=perlquestion: print w/replies, xml ) | Need Help?? |
pauloke has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am new to perl (and lower level languages in general) so please be gentle with me. I have a shared network folder that I need to monitor on a regular basis to ensure it doesn't become full. It stores project builds. Each project has its own folder containing multiple builds. I need to produce a script that could initially produce a txt file maybe or just print to screen and list of build folders that are older than a given date and purhaps over a given size. So I will need to recurse through all project folders calculating build folders sizes and determine which match a given criteria. without knowing much about perl I have become stuck very quickly and not know how to proceed. Do I use File::Find or do I use opendir - readdir - closedir? or is there a better solution. Any help would be appreciate - I am not asking for someone to produce the script for me. Just point me in the right direction with example, code snippets and tutorials if you know or just and explanation of an algorithm. I am working within a Win32 environment. Hope you can help. Thanks in advance.
Back to
Seekers of Perl Wisdom
|
|