Hi all,

I have user directories on a FTP server, and I am usign Net::FTP module to manage directories...

I can find the file size using ftp->size(); function but i am unable to get the directory size.

I am trying to do as under:

Code:
my $ftp = Net::FTP->new("127.0.0.1", Debug => 0)   or die "Cannot connect to FTP Server: $@"; # connect
$ftp->login("ftp123",'xxxxxxx')  or die "Cannot login ", $ftp->message; # login
my $path="/home/temp/1/";
my $size=$ftp->size("$path");
this returns nothing,

Please let me know How I can find the directory size.

Also, can someone tell me how to get the directory size from an FTP Server using
ssh. I want to the Unix du command to get the directory size as it will be a lot faster.

Thanks a ton,

Rakish