Skip to content

Commit

Permalink
Handle checking for empty directory correctly
Browse files Browse the repository at this point in the history
Signed-off-by: arunkumar9t2 <[email protected]>
  • Loading branch information
arunkumar9t2 committed Nov 6, 2024
1 parent 83cda45 commit d557922
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ internal fun AndroidSourceSet.toResourceSet(
): Set<BazelSourceSet> {
val manifestPath = manifest.srcFile.takeIf { it.exists() }?.let(project::relativePath)

fun File.isValid() = exists() && walk().any()
fun File.isValid() = exists() && walk().drop(1).any()
val resources = res.srcDirs.filter(File::isValid)
val assets = assets.srcDirs.filter(File::isValid)

Expand Down

0 comments on commit d557922

Please sign in to comment.