I am trying to clear some internal storage i have in the emulated directory two identical folders one /0 and one /legacy both have exact same files can i delete one?
1 Answer
Those are called "links", very common in Linux operating systems.
Chances are, your files are actually in neither of those directories. On my phone, the actual mountpoint of the partition those files are on is /storage/sdcard0
.
From there two links exist. One to /storage/emulated/legacy
and one to /storage/emulated/0
. The emulated
in the filename also suggests that both location are just, well, emulated.
This can vary from device to device, for example on an HTC I have here /stoage/sdcard0
is just a link to /storage/emulated/0
instead of the actual mountpoint.
That said: If you delete a file in one place, it's completely gone out of all two (or three) "places". The files have the same file sizes, but don't occupy twice the space on the partition. It is actually the same file. By that I mean it all points to the same place on the actual partition on your storage chip.
You can read more about links here.
-
-
-
@lm2018 If I answered your question I'd appreciate you accepting my answer (little ✓ on the left of the answer).– confettiCommented Oct 11, 2018 at 3:01
0
. Does it pop up inlegacy
as well?