[thelist] need to retrieve dir/file information

Chris W. Parker cparker at swatgear.com
Fri Jan 10 12:36:00 CST 2003


hi.

here is what i want to do...

i'd like to retrieve (recursively) directory information, specifically
size. when i execute the program output should be something like this...

C:\dir\ 1000000
C:\dir\1\ 303252
C:\dir\2\ 39124
C:\dir\2\a\ 19241242

etc...

also, i'd like to be able to pass the starting directory.

i am a perl nobody and i found one script on "the net" but it looks a
bit complicated. the script i found is 76 lines long and it doesn't even
get the directory size. i imagine that perl could do what i want in just
a few lines.

any ready made scripts out there?


thanks,
chris.



More information about the thelist mailing list