Skip to content

Commit

Permalink
Analyzer: Add code comment TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Nov 7, 2024
1 parent c270273 commit 87e6c4e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ class StorageScanner @Inject constructor(
val pkgStats = targetPkgs
.map { pkg ->
updateProgressSecondary(pkg.label ?: pkg.packageName.toCaString())

// TODO This does not include nested markers, e.g. Android/something or DCIM/something
// Supporting this is not trivial:
// If a Top level folder has app owned sub folders we need to prevent deleting it
// We would need to hide Android/data and Android/media, but not Android/<other>
// How deep would this nesting logic have to go?

val matchingTlds = topLevelDirs.filter {
val owner = it.getOwner(pkg.id) ?: return@filter false
!owner.hasFlag(Marker.Flag.CUSTODIAN) && !owner.hasFlag(Marker.Flag.COMMON)
Expand Down

0 comments on commit 87e6c4e

Please sign in to comment.