상속: FileSystemEntry
예제 #1
0
        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;
            }
        }