This project is read-only.

GetFileSize bug?

Dec 25, 2012 at 11:46 PM

My code goes as follows:

foreach (var file in ftp.GetFiles("/"))
                    {
                        Console.WriteLine(file.Name);
                        Console.WriteLine(ftp.GetFileSize(file.Name));
                        Console.WriteLine(file.LastWriteTime);
                    }
                    Console.ReadLine();

And it all works fine exept for the 'ftp.GetFileSize' function.

 

It only returns the first 2 file sizes, and limits the total output.

 

For example:

Bad Code:

http://www.invalid2.x10.mx/Random_Images/badcode.png

Good Code:

http://www.invalid2.x10.mx/Random_Images/goodcode.png

 

Any ideas? Thanks