protected override IEnumerable <FileSystemEntry> ImplFindFiles(string Path) { Ftp.ChangeDir(RealPath(Path)); var Entries = Ftp.ListEntries(); Ftp.ChangeDir(RootPath); foreach (var FTPEntry in Entries) { //Console.WriteLine(Path + " :: " + FTPEntry.Name); var FileSystemEntry = new FtpFileSystemEntry(this, Path + "/" + FTPEntry.Name, FTPEntry); yield return(FileSystemEntry); } }
internal override IEnumerable<FileSystemEntry> ImplFindFiles(string Path) { Ftp.ChangeDir(RealPath(Path)); var Entries = Ftp.ListEntries(); Ftp.ChangeDir(RootPath); foreach (var FTPEntry in Entries) { //Console.WriteLine(Path + " :: " + FTPEntry.Name); var FileSystemEntry = new FtpFileSystemEntry(this, Path + "/" + FTPEntry.Name, FTPEntry); yield return FileSystemEntry; } }