> When SynaFTP send LIST command on some ugly server, it unable to > properly parse server response to fill properly TFTPListRec struct. > > Original line which gives a server is incorrectly filled looks so > > -AR-------TCP A connecte 137115 115584 Aug 09 11:25 FILE1.EXT > -AR-------TCP A connecte 105073 491520 Aug 09 11:25 FILE2.EXT > > TFTPListRec fields is: > > TFTPListRec.FileName = 5 FILE1.EXT > TFTPListRec.Size = 0 > TFTPListRec.FFileTime = 09/08/2007 > TFTPListRec.FPermission = empty string > > Raw result for folder, what contain only subfolders is > > drwxrwxrwx 1 USER USER 512 Aug 09 11:39 USERFOLDER > > How to write properly Mask property to parse response from this server?
Rules for writing mask arenearly same as in TotalCommander. See attached text file. First see what mask your record matching now. Check, if you not found one existing mask what will be better and see, what is wrong, why better mask will not be used. This knowledge is good for creating new masks. Each TFtpListRec have mask property with mask, what has been used for parsing. It is good for debugging process. First problem what I see are 'rights' in uppercase, it cannot pass validity check. Best will be to prepare mask what ignoring these characters. -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library
tcftp.txt
Description: Binary data
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
