Iterate all files, including "excluded" and "ignored" ones

Answered

Hey all!

 

In my plugin, I'm trying to figure out if the open project contains an "aab" file (Android Studio).

According to a comment in the open API, ProjectFileIndex.SERVICE.getInstance(project).iterateContent() does not iterate over excluded or ignored files, and because ".aab" files are generated build output, it won't appear while iterating. Any alternatives? I've also tried FilenameIndex.getAllFilesByExt() and again no luck

0
1 comment

For files located in build output, one should use "regular" Java IO API instead of Virtual Files.

0

Please sign in to leave a comment.