login about faq

Hi There,

I have a Problem with renaming/moving a file on an sftp Server, the following error:

I can download the File, but i cant rename it, any ideas?

success = sftp.DownloadFileByName("/content/outlet/edit/outlet_edit.lib.php", tmp_file) <-- WORKS

success = sftp.RenameFileOrDir("/content/outlet/edit/outlet_edit.lib.php", "/content/outlet/edit/2013_07_04_133905_outlet_edit.lib.php"); <-- ERROR

ChilkatLog:
  RenameFile:
    DllDate: Dec 12 2012
    UnlockPrefix: XXX
    Username: WS-07:jbu
    Architecture: Little Endian; 32-bit
    Language: .NET 4.0
    VerboseLogging: 0
    SshVersion: SSH-2.0-OpenSSH_4.3
    SftpVersion: 3
    oldFilename: /content/outlet/edit/outlet_edit.lib.php
    newFilename: /content/outlet/edit/2013_07_04_133905_outlet_edit.lib.php
    StatusResponseFromServer:
      Request: FXP_RENAME
      InformationReceivedFromServer:
        StatusCode: 2
        StatusMessage: No such file
      --InformationReceivedFromServer
    --StatusResponseFromServer
    Failed.
  --RenameFile
--ChilkatLog

PS: With WinSCP the renaming works, and iam using verision 9.4.0 from Chilkat.

best,

Jörg

asked Jul 04 '13 at 07:49

J%C3%B6rg's gravatar image

Jörg
1111

edited Jul 04 '13 at 07:57


Hi Again,

I have found a solution, just removing the first slash in the old and new filename.

Regards,

Jörg

link

answered Jul 04 '13 at 09:12

J%C3%B6rg's gravatar image

Jörg
1111

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×4

Asked: Jul 04 '13 at 07:49

Seen: 982 times

Last updated: Jul 04 '13 at 09:12

powered by OSQA