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:
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
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,