Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

How to check a folder is accessible


Level 4

Hi Team,

I am looking for an activity which can help me in checking if a file present in a folder on a remote machine is accessible.

Also kindly suggest me the input pattern for the file path when using the activity. My shared location is \\wb\mis\pcs\shared\eForms\test.txt

Thanks in Advance

1 Reply


Level 10

There is no such Off the Shelf activity available for this requirement.

You can use ExecuteScript activity to do this.

java.io.File.canRead() method will return TRUE if the file can be read. FALSE otherwise.

Within execute script, you need to escape all backslashes as shown below


Within File Utilities activities, you can directly use the path without escaping the slashes.