Timeline for Are files created in "/storage/emulated/0" supposed to appear in "/storage/sdcard0"?
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 29, 2017 at 19:22 | history | edited | Izzy | CC BY-SA 3.0 |
integrated facts from comments
|
Apr 29, 2017 at 18:47 | vote | accept | Narcotixs | ||
Apr 29, 2017 at 18:38 | comment | added | Narcotixs | The thread continues at: android.stackexchange.com/questions/173918/… | |
Apr 29, 2017 at 9:36 | comment | added | Izzy |
You again turned the horse around, which causes your confusion ("why does it have its head at the wrong end?"). It's not /storage/emulated/* pointing to /storage/sdcard0 but the other way around. So if "user0" is logged in, sdcard0 points to emulated/0 but if "user1" is logged in it points to emulated/1 – i.e. "the sdcard" always points to the emulated storage area dedicated to the logged-in user – which of course holds different content for each user.
|
|
Apr 29, 2017 at 5:10 | comment | added | Narcotixs | If all the locations point to the same virtual storage, what's the point in having separate storage locations for each different user (if more than one exists of course)? So, /storage/emulated/0,1,2,3,etc. they all point to /storage/sdcard0, which also points to /sdcard? So why do the numbers exist? Why allocate a numerical folder if they all point to the same location and contain the same exact information? | |
Apr 28, 2017 at 7:30 | history | edited | Izzy | CC BY-SA 3.0 |
added 763 characters in body
|
Apr 28, 2017 at 7:15 | comment | added | Izzy |
Symlinks are unidirectional, some kind of "redirects" (aka "look there"). But as such, if you'd create a file at /storage/emulated/0 , it would of course show up in /storage/sdcard0 , as in both are pointing to the very same place. Oh, I see, I should have written that explicitly – that's the problem if you work with a thing every day, it's clear that a symlink does that :) OK, will add that to my answer.
|
|
Apr 28, 2017 at 7:09 | comment | added | Narcotixs | It's hard to say if you actually answered the question, the symlinks are helpful, but it introduced more questions. I now want to know if symlinks bi-directional? If I create a file in /storage/emulated/0, will it show up in /storage/sdcard0? Your arrow points and indicates a transfer of information (i.e., from storage to emulated), but does it go in reverse as well? That was my question. From what you are saying, I assume that is true. Would you agree? | |
Apr 28, 2017 at 7:00 | comment | added | Izzy |
Sorry, I cannot answer that. Maybe you ask it as a separate question? Also, if this answers your original question, consider accepting it, @Narcotixs ;) And sorry for having rejected your edit: your change doesn't reflect what I found; /sdcard here is a direct link to /storage/emulated/legacy , not to /storage/sdcard0 .
|
|
Apr 28, 2017 at 5:31 | comment | added | Narcotixs | Why does "/storage/sdcard0" point to "/storage/emulated/legacy"? I thought emulated storage should always point to the original storage location (i.e., internal storage or the real virtual storage location) or is there no pointing at all, that it is just a mutual bidirectional reference towards each other? | |
Apr 28, 2017 at 3:13 | review | Suggested edits | |||
Apr 28, 2017 at 7:04 | |||||
Apr 27, 2017 at 23:39 | comment | added | Narcotixs | This may be off-topic slightly, but why are these symlinks needed? What was the reason why the storage architecture was changed and designed to what it is now? | |
Apr 27, 2017 at 22:21 | history | answered | Izzy | CC BY-SA 3.0 |