mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 19:49:29 +02:00
+ Use new DirectoryExists function
This commit is contained in:
parent
90062097c9
commit
801695a4b0
@ -6,7 +6,7 @@ Program Example26;
|
|||||||
Uses sysutils;
|
Uses sysutils;
|
||||||
|
|
||||||
Begin
|
Begin
|
||||||
If Not FileExists('NewDir') then
|
If Not DirectoryExists('NewDir') then
|
||||||
If Not CreateDir ('NewDir') Then
|
If Not CreateDir ('NewDir') Then
|
||||||
Writeln ('Failed to create directory !')
|
Writeln ('Failed to create directory !')
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user