I'm trying to get the size of a folder and figure Mac::Glue would be the way to go. However I'm getting back a 0:

use Mac::Glue;
my $finder = new Mac::Glue 'Finder';
die("No such file: $monthdir/$folder/") unless -e "$monthdir/$folder/";
my $size = $finder->data_size("$monthdir/$folder/");
print $size;
# 0
print $MacError
#

Now surely if the file doesn't work (like if I'm supposed to put some object there) I should be getting some sort of error?

(If there's a better way to get the size of a folder, please let me know!)

Cheers!
Rick




Senior Developer PrintSupply - Print Procurement & Supply Management 18 Greenaway Street VIC 3105 Tel: (03) 9850 3255 Fx: (03) 9850 3277 http://www.printsupply.com.au/



Reply via email to