Aug-03-2018, 11:21 PM
On windows,
win32api.GetLogicalDriveStrings()
will return a list of connected drives.
Linux dosen't use drive letters
you can list \run\media\user (replace user with user name)
that will show devices that are mounted, but this most likely will not include all available devices.
You can list disk partitions, but it's a delicate procedure so tread lightly see: https://www.cyberciti.biz/faq/linux-list...s-command/
also /dev/disk/by-label but again, I don't think they show if not mounted.
win32api.GetLogicalDriveStrings()
will return a list of connected drives.
Linux dosen't use drive letters
you can list \run\media\user (replace user with user name)
that will show devices that are mounted, but this most likely will not include all available devices.
You can list disk partitions, but it's a delicate procedure so tread lightly see: https://www.cyberciti.biz/faq/linux-list...s-command/
also /dev/disk/by-label but again, I don't think they show if not mounted.