Exemple #1
0
 private IUnixFileSystemEntry GetEntryByName(FtpDirectory dir, string name)
 {
     return(dir.Items.FirstOrDefault(i => i.Name.Equals(name, StringComparison.InvariantCultureIgnoreCase)));
 }
Exemple #2
0
 private IReadOnlyList <IUnixFileSystemEntry> GetEntries(FtpDirectory dir)
 {
     return(dir.Items.ToList().AsReadOnly());
 }