Please enable JavaScript to view this site.

Codolex

Navigation: Activities > File system

Exists file/folder

Scroll Prev Top Next More

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

 

ExistsFilefolder

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.

 

© by GDK Software