Get list of all files and folders from a drive, which have restricted access




I have a drive which I want to read out.

Goal: Get list of all restricted files and folders from this drive.

The first assign is currently like that:
myFiles=Directory.EnumerateFiles(“J:\abc”, “*.pdf”, SearchOption.AllDirectories)

How do I need to change the workflow to only get the path of restricted access files and folders?


@badita: Can you please help?


Invoke code? Custom activity?


How would you do that?