Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Move a File From a selected Directory to another Directory.

$
0
0

Hey Guys,
im new to this Project and my English Skills aren't the best cause Im not a native Speaker.I got the problem that i cant move Files from a Directory to another Directory. Everytime when I want to move a File I get an Exception.

Here is my Code Snippet

SftpClient sctmp=new SftpClient("","","");
                  sctmp.Connect();
                   
                  sctmp.Get(source).MoveTo(Dest);
                  sctmp.Disconnect();

I removed the Data for my Connection.My Connection dont fail cause i can get the list of Directorys and Files.

And Here is my Exception

Failure
   bei Renci.SshNet.Sftp.SftpSession.RequestRename(String oldPath, String newPath)
   bei Renci.SshNet.Sftp.SftpFile.MoveTo(String destFileName)
   bei SolidsSFTP.RemoteFile.movefile(String source, String Dest)

I hope u can help me and thanks for your feedback.

Greetings
SolidNerd


Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>