Renaming a file

Top  Previous  Next

You can rename a file using the Sftp.RenameFile method providing the current file name and the new file name.

 

Example

 

[C#]

 

// rename testdata.txt to testdata.txt.old

sftp.RenameFile("testdata.txt","testdata.txt.old");

 

[VB]

 

' rename testdata.txt to testdata.txt.old

sftp.RenameFile("testdata.txt","testdata.txt.old")