{ $Project$ $Workfile$ $Revision$ $DateUTC$ $Id$ This file is part of the Indy (Internet Direct) project, and is offered under the dual-licensing agreement described on the Indy website. (http://www.indyproject.org/) Copyright: (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } { $Log$ } { Rev 1.1 11/29/2004 11:26:00 PM JPMugaas This should now support SuperTCP 7.1 running under Windows 2000. That does support long filenames by the dir entry ending with one space followed by the long-file name. ShortFileName was added to the listitem class for completeness. Rev 1.0 11/29/2004 2:44:16 AM JPMugaas New FTP list parsers for some legacy FTP servers. } unit IdFTPListParseSuperTCP; interface {$i IdCompilerDefines.inc} uses Classes, IdFTPList, IdFTPListParseBase; type TIdSuperTCPFTPListItem = class(TIdFTPListItem) protected FShortFileName : String; public property ShortFileName : String read FShortFileName write FShortFileName; end; TIdFTPLPSuperTCP = class(TIdFTPListBase) protected class function IsValidWin32FileName(const AFileName : String): Boolean; class function IsValidMSDOSFileName(const AFileName : String): Boolean; class function MakeNewItem(AOwner : TIdFTPListItems) : TIdFTPListItem; override; class function ParseLine(const AItem : TIdFTPListItem; const APath : String = ''): Boolean; override; public class function GetIdent : String; override; class function CheckListing(AListing : TStrings; const ASysDescript : String = ''; const ADetails : Boolean = True): Boolean; override; end; // RLebeau 2/14/09: this forces C++Builder to link to this unit so // RegisterFTPListParser can be called correctly at program startup... {$IFDEF HAS_DIRECTIVE_HPPEMIT_LINKUNIT} {$HPPEMIT LINKUNIT} {$ELSE} {$HPPEMIT '#pragma link "IdFTPListParseSuperTCP"'} {$ENDIF} implementation uses IdGlobal, IdFTPCommon, IdGlobalProtocols, SysUtils; { TIdFTPLPSuperTCP } class function TIdFTPLPSuperTCP.CheckListing(AListing: TStrings; const ASysDescript: String; const ADetails: Boolean): Boolean; var i : Integer; LBuf, LBuf2 : String; begin { Maybe like this: CMT