The exists file/folder activity returns a boolean if the given path contains a file or folder.
uses System.IOUtils.TDirectory.Exists
uses System.IOUtils.TFile.Exists
Activity properties
begin TDirectory.Delete('C:\...\Codolex\TestData'); end; |
resulting code
The activity id is available for both file and folder. However, if a folder is found when checking for a file (or the other way around), the result will be false.