Browse Source

+ Use new DirectoryExists function

michael 22 năm trước cách đây
mục cha
commit
801695a4b0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      docs/sysutex/ex26.pp

+ 1 - 1
docs/sysutex/ex26.pp

@@ -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