-
Notifications
You must be signed in to change notification settings - Fork 0
/
uFTPItem.pas
40 lines (34 loc) · 1.04 KB
/
uFTPItem.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
unit uFTPItem;
interface
uses
Classes, System.Generics.Collections;
type
TFTPItem = class
private
FFolder: string;
FName: string;
FFullPathWithFileName: string;
FSize: integer;
FDir: boolean;
FModifiedDate: string;
FParent: TFTPItem;
FChildren: TList<TFTPItem>;
public
constructor Create(parent: TFTPItem);
property Parent: TFTPItem read FParent write FParent;
property Children: TList<TFTPItem> read FChildren write FChildren;
property Folder: string read FFolder write FFolder;
property Name: string read FName write FName;
property Size: integer read FSize write FSize;
property Dir: boolean read FDir write FDir;
property ModifiedDate: string read FModifiedDate write FModifiedDate;
property FullPathWithFileName: string read FFullPathWithFileName write FFullPathWithFileName;
end;
implementation
constructor TFTPItem.Create(parent: TFTPItem);
begin
inherited Create;
FChildren := TList<TFTPItem>.Create;
FParent := parent;
end;
end.