Differences
This shows you the differences between the selected revisions of the page.
| 2012-01-13 | 2012-01-27 | ||
| exit code (martin) | RemoteDirectoryInfo (martin) | ||
| Line 6: | Line 6: | ||
| ===== Syntax ===== | ===== Syntax ===== | ||
| <code csharp> | <code csharp> | ||
| - | public Collection<RemoteFileInfo> ListDirectory(string path) | + | public RemoteDirectoryInfo ListDirectory(string path) |
| </code> | </code> | ||
| Line 14: | Line 14: | ||
| ==== Return Value ==== | ==== Return Value ==== | ||
| - | Collection of ''[[library_remotefileinfo|RemoteFileInfo]]''. | + | ''[[library_remotedirectoryinfo|RemoteDirectoryInfo]]''. |
| ===== Exceptions ===== | ===== Exceptions ===== | ||
| Line 48: | Line 48: | ||
| session.Open(sessionOptions); | session.Open(sessionOptions); | ||
| - | Collection<RemoteFileInfo> files = session.ListDirectory("/home/martin/public_html"); | + | RemoteDirectoryInfo directory = session.ListDirectory("/home/martin/public_html"); |
| - | foreach (RemoteFileInfo fileInfo in files) | + | foreach (RemoteFileInfo fileInfo in directory.Files) |
| { | { | ||
| Console.WriteLine("{0} with size {1}, permissions {2} and last modification at {3}", | Console.WriteLine("{0} with size {1}, permissions {2} and last modification at {3}", | ||