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

已回答

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

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

0

请先登录再写评论。