-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External media connected via USB #6
Comments
For now I can say that it's much harder to implement than labels for parts. Furthermore I need to provide the same functionality for unix based system (and mac-OS) because I'm trying to maintain the project fully cross-platform. Additionally it's harder to test properly (I need to test it on a few platforms with a few device types (flashdrive, external hdd storage etc.)). I would say I cannot see for now any way of detecting type of a storage without huge overhead (in times both code and performance). As for me It could be a good idea for the separate project. Let's say {
type: 'flashdrive',
interface: 'usb',
filesystem: 'ntfs'
...
} or {
type: 'ssd',
interface: 'SCSI',
filesystem: 'ext4'
...
} Speaking about your case, I suggest you don't need support of unix based system (surely I can be wrong) thus It'd be much easier for you to implement that logic for the only one platform. https://ardamis.com/2012/08/21/getting-a-list-of-logical-and-physical-drives-from-the-command-line/ here's the article about wmic util (which output is used in It's not a final decision and we can discuss it further. |
Unfortunately, I do need USB-detection cross-platform :-] Earlier i've handled all 3 platforms via and https://www.npmjs.com/package/@sindresorhus/df (linux, darwin) My first thoughts was to track on *nix platforms via mount-points somehow
But I'm not pretty sure how to handle this on Since I need to find a way to detect USB flash storages mostly and use appropriate icon for them, I thought it would be fine to use same hdd-icon for removable and internal hard drives. But its not always will be quite Cross-platform So I believe there should be the way to detect connected interface somehow Related issues: Thanks for you help! |
Is it possible to detect external media connected via USB and process such disks or flash drives separately?
Like so:
Thanks!
The text was updated successfully, but these errors were encountered: