Closed kelson42 closed 7 years ago
mhutti1/android-storage-devices@0f5b308
Should have fixed
@mhutti1 Something seems still to be buggy. I have now 3 entries: 1 - 4.99GB 2 - 5.01GB 3 - 134.01GB
I think this is fixed in the majority of cases but there may be one or two that have slipped through the cracks. Implementing a simple check to validate non duplicate zim id's should fix this.
After some though the best/only practical way I can think of solving this is to create a file in each location with a location ID. Two locations are unique if they have no file in any of their parent hierarchy with the same ID.
@mhutti1 What is a LocationID?
@kelson42 an arbitrary random number.
@mhutti1 Not sure to fully understand what you mean... but looks like you know what you are doing ;)
@kelson42 This should be fixed now. The only time there should be duplicates is if one is private storage and in this case we tell the user this.
OK, then let see users feedbacks :) THX
"Settings" > "Storage" display many entries (odd)
The first 3 ones are duplicates, I can reproduce the problem on my device. I guess this because a storage device has many mounting points!
An relatively smart should be able to identify the duplicates based on the the content of the directory.