login about faq

I would like get the size of one file who is stored in a ftp server

I am able to connect to the ftp server, but I cannot get the size of one file

For example, I try to use $ftp->getSize(5), and I get the followed message :

Can't locate object method "getSize" via package "chilkat::CkFtp2" 
at C:\Users\mike\Desktop\WinDev\abc\Copy Ftp 2\TestFileSize.pl line 37.
I don’t understand

asked Feb 13 '17 at 10:55

chilkat's gravatar image

chilkat ♦♦

edited Feb 13 '17 at 10:55

A "Can't locate object method" error in Perl means the method name was incorrect, or the arguments passed to the method were not correct in number or type.

In this case, the method name "GetSize", not "getSize". Perl is a case-sensitive language. As far as I know, "getSize" would be a different method name than "GetSize". It's important to get the case correct.


answered Feb 13 '17 at 11:02

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Feb 13 '17 at 10:55

Seen: 1,286 times

Last updated: Feb 13 '17 at 11:02

powered by OSQA