some file names truncated in ReadDirectory

ReadDirectory listing wrong for some files with specific names on ftp server

For example, if I have file with name "A Tree List Control - Tree Controls.mht" on ftp server, then "Directory" property will be contain FTPItem object with value "Tree List Control - Tree Controls.mht" in "Name" property (symbol A is not present). See below few situations:

"B file.txt" - wrong (will be "file.txt")
"Bfile.txt" - correct
"-B file.txt" - correct
"- file.txt" - wrong (will be "file.txt")
"-+ file.txt" - correct
"AB file.txt" - correct


Regards,
Nikolai Egipko

Please post the raw directory listing of these directories. You can get them with the SmartFTP Client.

Thank you.
Regards,
-Mat

Please post the log of your FTP session as well.

Thank you.
Regards,
SmartFTP


Please post the log of your FTP session as well.

[16:23:29] SmartFTP v2.0.996.25
[16:23:29] Resolving host name "nikeware"
[16:23:30] Connecting to 10.21.1.89 Port: 21
[16:23:30] Connected to nikeware.
[16:23:30] 220 Welcome to Quick 'n Easy FTP Server
[16:23:30] USER Nikolaz
[16:23:30] 331 Password required for Nikolaz
[16:23:30] PASS (hidden)
[16:23:30] 230 User successfully logged in.
[16:23:30] SYST
[16:23:30] 215 UNIX emulated by Quick 'n Easy FTP Server.
[16:23:30] FEAT
[16:23:30] 211-Extensions supported
[16:23:30] SIZE
[16:23:30] MDTM
[16:23:30] XCRC
[16:23:30] 211 END
[16:23:30] TYPE I
[16:23:30] 200 Type set to BINARY
[16:23:30] REST 0
[16:23:30] 350 Restarting at 0.
[16:23:30] PWD
[16:23:30] 257 "/" is current directory.
[16:23:30] TYPE A
[16:23:30] 200 Type set to ASCII
[16:23:30] PASV
[16:23:30] 227 Entering Passive Mode (10,21,1,89,4,0)
[16:23:30] Opening data connection to 10.21.1.89 Port: 1024
[16:23:30] LIST -aL
[16:23:30] 150 Opening ASCII mode data connection for directory list.
[16:23:30] 5970 bytes transferred. (388 KB/s) (15 ms)
[16:23:30] 226 Transfer complete
[16:23:34] CWD /TreeList
[16:23:34] 250 "/TreeList" is current directory.
[16:23:34] PWD
[16:23:34] 257 "/TreeList" is current directory.
[16:23:34] PASV
[16:23:34] 227 Entering Passive Mode (10,21,1,89,4,0)
[16:23:34] Opening data connection to 10.21.1.89 Port: 1024
[16:23:34] LIST -aL
[16:23:34] 150 Opening ASCII mode data connection for directory list.
[16:23:34] 3569 bytes transferred. (217 KB/s) (16 ms)
[16:23:34] 226 Transfer complete
[16:23:38] CWD /TreeList/_Docs
[16:23:38] 250 "/TreeList/_Docs" is current directory.
[16:23:38] PWD
[16:23:38] 257 "/TreeList/_Docs" is current directory.
[16:23:38] PASV
[16:23:38] 227 Entering Passive Mode (10,21,1,89,4,0)
[16:23:38] Opening data connection to 10.21.1.89 Port: 1024
[16:23:38] LIST -aL
[16:23:38] 150 Opening ASCII mode data connection for directory list.
[16:23:38] 310 bytes transferred. (20,1 KB/s) (15 ms)
[16:23:38] 226 Transfer complete

Regards,
Nikolai

I think the problem in SmartFTP raw directory parser engine. Yes?

Regards,
Nikolai

Anybody home?

Regards,
Nikolai

If you have bought a license please enter your license ID into your forum profile and post in the "Premium Support" forum. This will give you a speed up ;-)

Hello ..

Quick and Easy's output is not what we expect from a UNIX compliant FTP server:


Unix:

-rwx------   1 user	 group			  0 May 24  2004 A MultipleSelection.cpp

Quick and Easy:

-rwx------ 1 user group				 2716 Jan 29 2004 A MultipleSelection.cpp


You should notice the extra space after the day in the date. Please report the problem to the Quick and Easy developer.

Regards,
SmartFTP


You should notice the extra space after the day in the date. Please report the problem to the Quick and Easy developer.

Thank you for your report, MB.

Yes, indeed. I check this situation on my web site with standard ftp server - SmartFTP work fine.
I use Quick and Easy only as local ftp server for testing of my applications
It's not big problem for me in this situation.

+1 to SmartFTP lib

Regards,
Nikolai

I just talked to Pablo, the developer of Quick n' Easy FTP Server. He told me he will look into it and he may consider to implement MLSD/MLST.

I will post further updates here.

Regards,
-Mat

Wow!

+2 to SmartFTP lib

p.s. I think about purchase of SmartFTP lib