Differences
This shows you the differences between the selected revisions of the page.
library_session_movefile 2017-09-05 | library_session_movefile 2024-10-25 (current) | ||
Line 8: | Line 8: | ||
<code vbnet *> | <code vbnet *> | ||
- | Public Sub MoveFile(ByVal sourcePath As String, ByVal targetPath As String) | + | Public Sub MoveFile(sourcePath As String, targetPath As String) |
</code> | </code> | ||
Line 24: | Line 24: | ||
===== Example ===== | ===== Example ===== | ||
- | '' | ||
- | RemoteDirectoryInfo lst = session.ListDirectory("/FTP/JASPER/*.eot"); // End of Transmission | ||
- | foreach (RemoteFileInfo file in lst.Files) | ||
- | { | ||
- | Assert.IsNotNull(file); | ||
- | string path = "/FTP/JASPER/"; | ||
- | string srcPath = path + file.Name; | ||
- | string targetPath = path+@"done/" + file.Name; | ||
- | session.MoveFile(srcPath, targetPath); | ||
- | //return; | ||
- | } | ||
- | '' | ||
==== Real-Life Example ==== | ==== Real-Life Example ==== | ||
- | * [[script_locking_files_while_uploading|Locking files while uploading / Upload to temporary file name]]; | + | * [[script_locking_files_while_uploading|*]]; |
- | * [[library_example_advanced_rename|Advanced files rename on SFTP/FTP server]]. | + | * [[library_example_advanced_rename|*]]. |