login about faq

I am trying to get the size of a file twice on a remote sftp server. I am using the perl module but can't seem to get it to work for the second try.

asked Feb 03 '15 at 11:46

skingsbu's gravatar image


Thanks, but I need more specific information to understand the problem. A code snippet that shows how to reproduce the problem would help.


answered Feb 03 '15 at 22:43

chilkat's gravatar image

chilkat ♦♦

I am trying to get the file size on the remote server to determine if its still building.

for ($i = 0; $i <= $n - 1; $i++) { $fileObj = $dirListing1->GetFileObject($i); my $file_name = $fileObj->filename(); $pass1_size = $fileObj->get_Size32(); sleep 5; $pass2_size = $fileObj->get_Size32(); }

file size is the same even when the remote file is still being written to.

(Feb 04 '15 at 09:01) skingsbu
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 03 '15 at 11:46

Seen: 3,500 times

Last updated: Feb 04 '15 at 09:01

powered by OSQA