login about faq

I'm evaluating your component to be used in a project, there is only one requirement that I did not figure out how to address using SFTP class. After downloading a file I need to move the to a different directory, looks like the SFTP server support a move command (MV), so my questions are:

  • How can I issue a MV command to the server?
  • The SFTP class have a method to address this requirement?

I do not want to upload the file back in a different folder and delete original file.

asked Jun 27 '12 at 19:10

chilkat's gravatar image

chilkat ♦♦

In SFTP, the "rename" operation is synonymous (i.e. means the exact same thing) as "move" file. The Chilkat SFTP method to move/rename a file is RenameFileOrDir. The reason "rename" was chosen is because the SFTP protocol specification uses the term "rename".

You can see the SFTP v6 protocol specification here: http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13

The section of the SFTP protocol spec that concerns renaming is on page 38: http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#page-38


answered Jun 27 '12 at 19:17

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: Jun 27 '12 at 19:10

Seen: 11,026 times

Last updated: Jun 27 '12 at 19:17

powered by OSQA