How to check if a file is locked on macos with delphi?


I work with delphi berlin.
I create an application for macos with firemonkey.
I need to open a file with an external program (i’m using _system function for that) and then to detect when the file is closed in the external application. So i’d like to check regularly if the file is locked.
How to check if the file is locked on macos with delphi ?

Comments are closed.