Explorar o código

+ Use new DirectoryExists function

michael %!s(int64=22) %!d(string=hai) anos
pai
achega
801695a4b0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/sysutex/ex26.pp

+ 1 - 1
docs/sysutex/ex26.pp

@@ -6,7 +6,7 @@ Program Example26;
 Uses sysutils;
 
 Begin
-  If Not FileExists('NewDir') then
+  If Not DirectoryExists('NewDir') then
     If Not CreateDir ('NewDir') Then
       Writeln ('Failed to create directory !')
     else