The problems likely stem from the fact that FTP is an old protocol and directory information is obtained by parsing directory listings that were originally meant for human viewing. You should examine the contents of the SessionLog property to see what kind of directory listing is being parsed. It's likely a problem that can't be resolved.
I have to add one general comment: It amazes me that anyone would choose to create filenames with leading or trailing SPACE characters. This is just asking for trouble. Why not avoid naming files like this in the first place?
answered Apr 09 '13 at 09:01