I'd like to display the label of a flash drive instead of the serverFolder.name property (USB-1 etc.) in the import menu to better discern connected flash drives (working on a raspberry Pi). I initially thought of adding a serverAction function to the import component, that calls an external command executing <i>lsblk -n -o LABEL /dev/sdaX</i>
for each serverFolder, but since no callback/ return value is given, I can't use the obtained information easily.
Maybe it could be added to the serverFolderState directly?
Also is there a way to detect wheter a flash drive is connected to a port at all. I don't need to display a port, that has no mounted drives.
Right now I check the filesInPath
array of the RSBrowseFolder bfolder property for being empty, which works, but is kind of messy.