Delphi Berlin 10.1 create file/folder OS X

  

How to create file/folder on OS X via delphi?
I’m trying to use functions

System.SysUtils.FileCreate

And

System.IOUtils.TDirectory.CreateDirectory

Code:

if FileCreate(‘/var/folders/bla.txt’) = INVALID_HANDLE_VALUE then
raise Exception.Create(‘File already exists’);

or

`TDirectory.CreateDirectory(‘/var/folders/mydirdelete’);`

Anyway when i run app i get

Exception EFileNotFoundException in module blprtl240.dylib at 0053AFAF.
The specified file was not found.

Even if i create folder.

Any advices?

Comments are closed.