Hi All,
I am using the below code to find the size of the folder. But i have lot of folders and it's taking more time. Any other method to achieve the same. i tried to install win32::Dirsize but it's not installing properlt thru ppm.
use File::Find; my $size; find(sub{ -f and ( $size += -s ) }, $data ); $size = sprintf("%.02f",$size / 1024 / 1024); if ($size > 2048) { print "Directory $data contains $size MB\n"; }
In reply to folder size by Selvakumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |