OP Recognized Contributor
FTP and paths on SD cards.
Every now and then I test all the possible paths to Internal and External SDs via FTP. With some lingering SD card access issues recently resolved, now seems like a good time to repeat the routine.
In L5.1.1/CM12.1, SuperSU 2.65 (recent Playstore update of flashed SuperSU 2.46), Selinux = permissive, MiXplorer v6.1.4.BETA_B1602294, Filezilla 220.127.116.11 FTP client connecting to MiXplorer FTP using active tab at / as top level, copying a 15MB PDF through a variety of paths:
/storage/sdcard0, and /storage/emulated/legacy, and /sdcard: File copy is successful to root of internal SD but no contents shown at these paths in FTP client. Viewing same location via /storage/emulated/0 shows the copied file and all other expected content. A bad thing about this is that copying the file again by the same method overwrites the existing one without a prompt. I verified this by copying a different file of different type and size but with same filename.
/storage/emulated/0: File copy is successful to root of internal SD..
/external_sd: File copy is successful to root of external SD.
/storage/sdcard1: File copy is successful to root of external SD.
/mnt/media_rw/sdcard1: File copy is successful to root of external SD.
/mnt/shell/emulated/0: File copy is successful to root of internal SD.
/mnt/shell/emulated/legacy: This is a weird one. File copy is successful but this path is not linked to any other location and the copied file is there alone when viewed via FTP or in MiX on device. Not a problem, just interesting, maybe a quirk of the ROM.