source: Console test/UFileSystem.pas

Last change on this file was 2, checked in by george, 15 years ago
  • Přidáno: Prvotní načtení tříd.
File size: 438 bytes
Line 
1unit UFileSystem;
2
3interface
4
5uses
6 SysUtils;
7
8type
9 TDirectory = class
10 Path: string;
11 procedure Make;
12 procedure Remove;
13 function Exists: Boolean;
14 end;
15
16implementation
17
18{ TDirectory }
19
20function TDirectory.Exists: Boolean;
21begin
22 Result := DirectoryExists(Path);
23end;
24
25procedure TDirectory.Make;
26begin
27 MkDir(Path);
28end;
29
30procedure TDirectory.Remove;
31begin
32 RmDir(Path);
33end;
34
35end.
Note: See TracBrowser for help on using the repository browser.