login about faq

I get this "No such file" error when trying to delete a file on an SFTP server? What could be the problem?

    DllDate: Dec 12 2012
    UnlockPrefix: UNTTSTSSH
    Username: CK2007:Chilkat
    Architecture: Little Endian; 32-bit
    Language: Visual C++ 6.0
    VerboseLogging: 0
    SshVersion: SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu3
    SftpVersion: 3
    filename: ./blah.txt
      Request: FXP_REMOVE
        StatusCode: 2
        StatusMessage: No such file

asked Dec 17 '12 at 13:01

chilkat's gravatar image

chilkat ♦♦

The path to the file your app is attempting to delete is shown in the LastErrorText. In this case, it is "./blah.txt". If the path is not an absolute path, as in this case, then it is a path relative to the HOME directory of the SSH/SFTP user account.

The SSH server's error message is accurate -- the file was not found (i.e. does not exist). Don't disbelieve it. One common error is that the SSH/SFTP user account's HOME directory is not what you expect. Verify what it is.


answered Dec 17 '12 at 13:04

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: Dec 17 '12 at 13:01

Seen: 2,594 times

Last updated: Dec 17 '12 at 13:04

powered by OSQA