adoxa wrote: ↑Tue Sep 04, 2018 17:36
prl wrote: ↑Tue Sep 04, 2018 17:07
adoxa wrote: ↑Tue Sep 04, 2018 16:11
That would work with the split header, but not with a single name (well, I guess "/current/directory/.." would work, but not exactly pretty).
I was just about to suggest exactly that. I think it's the cleanest and most consistent answer to the problem.
How would "<List of Storage Devices>" be displayed? It's not ".." nor "/" (and ending with "//" isn't a good idea in any event) and anything else goes back to the original problem of hiding the current directory.
I already said: the path name in the header for the "<List of Storage Devices>" file list should show the path name of the mount point currently in focus:
/,
/media/hdd,
/media/usb,
/media/automount/MyNAS, and so on. They are, after all, what those list entries represent. The file status header should show the info for the directory path being displayed.
"//" is a perfectly legal Unix path. It means the same thing as "/./." (since the empty path segment name is interpreted as "."), and that, in turn, means the same as "/". That's not to say that it is a sensible name to use
Code: Select all
root@beyonwizu4:/media/hdd/logs# ls / //
/:
bin etc lib picon run sys var
boot hdd media piconlcd sbin tmp
dev home mnt proc share usr
//:
bin etc lib picon run sys var
boot hdd media piconlcd sbin tmp
dev home mnt proc share usr
root@beyonwizu4:/media/hdd/logs#
("/.." also means the same as "/", since uniquely, the '..' entry in the root points to the same inode as '.' in the root directory, which is, of course the root directory, inode 2).
"<List of Storage Devices>" doesn't actually represent any real filesystem object, and the items listed in it don't share a common parent directory. It's a figment of enigma2's imagination and looks to me like a list of fancy names for DOS device letters. It's also bizarre that in the File Commander's view of the universe, the list is accessed as though it's the parent of the root directory, when in fact everything in it represents objects at or under the root directory.