Differences
This shows you the differences between the selected revisions of the page.
| 2016-06-21 | 2017-09-05 | ||
| library_example_advanced_rename (martin) | no summary (217.33.90.252) (hidden) (untrusted) | ||
| 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 ==== | ||