Open redmission84 opened 5 years ago
I think you'd need to run it in a polling loop, and look for any differences in the output between one run and the next. This is how etcher-sdk does it: https://github.com/balena-io-modules/etcher-sdk/blob/master/lib/scanner/adapters/block-device.ts
Not an issue with this module exactly, but is there a way to detect when a new device is added or an existing device is removed?