Inheritance: FileSystemEntry
        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);
            }
        }
示例#2
0
        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;
            }
        }