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