Re: IdFTPList.pas - PermissionDisplay not set in TIdFTPListItem.Assign()

Giganews Newsgroups
Subject: Re: IdFTPList.pas - PermissionDisplay not set in TIdFTPListItem.Assign()
Posted by:  Remy Lebeau \(Indy Team\) (re…@lebeausoftware.org)
Date: Tue, 1 Jun 2010

"spriditis" <megamurmul…@inbox.lv> wrote in message
news:66DAFE1508B1E340megamurmul…@inbox.lv...
> List.Assign(idftp1.DirectoryListing);
> List.Items[x].PermissionDisplay - empty, because this
> field is not copied in IdFTPList.pas

Assign() is not fully implemented in TIdFTPListItem and descendants at this
time.  Most properties are not copied.

> also minor:
> 512: constructor TIdFTPListItem.Create(AOwner: TCollection);
> .....
> 522:    FModifiedAvail := True;
>>>523:  FPermissionDisplay := '';  //missing initialization

Strings are managed types that are initialized to empty values by the
compiler.

--
Remy Lebeau (Indy Team)

Replies

In response to

IdFTPList.pas - PermissionDisplay not set in TIdFTPListItem.Assign() posted by spriditis on Sun, 30 May 2010