On Nov 5, 9:40 am, Paul Spaulding <[email protected]> wrote:
> Using Node.js, how would I go about detecting when a USB storage device
> (like a thumb-drive) is plugged into the host?  Ideally, there would be an
> event that I could listen for instead of polling.  Assume a Linux OS,
> although something that also works on Windows would be great.  A pure
> Node.js approach would be preferred, but I am not against leveraging other
> tools if it makes the problem simpler.  Thanks in advance.

You might try one of the dbus bindings [1] and listen for the
DeviceAdded signal.

[1] https://github.com/Motorola-Mobility/node-dbus
    https://github.com/Shouqun/node-dbus
    https://github.com/sidorares/node-dbus

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to