login about faq

The SFTP server returns a file-not-found error when trying to use the handle of an opened remote file for the GetFileSize32 method. For example:

        Using sftp As New Chilkat.SFtp()
            Dim fileLength As Long
            handle = l_sftp.OpenFile(remoteFilePath, "readOnly", "openExisting")
            fileLength = l_sftp.GetFileSize32(handle, False, True)
        End Using

asked Apr 23 '13 at 15:52

chilkat's gravatar image

chilkat ♦♦

It's possible that this is due to a server bug.

The GetFileSize32 function works fine using a later version of the SSH server (SSH-2.0-1.82). The one it failed on has SSH-2.0-1.36.

Passing the remote file path to GetFileSize32 works fine with both SSH server versions.


answered Apr 23 '13 at 15:55

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: Apr 23 '13 at 15:52

Seen: 2,504 times

Last updated: Apr 23 '13 at 15:55

powered by OSQA