Jump to ID:
Filesystems

Project Home

Documents

Discussions

Wiki

Project Info
Forum Topic - How to get notified if a new file is created inside a dir?: Page 1 of 3 (3 Items)
   
 
 
How to get notified if a new file is created inside a dir?  
Hello All,

I have a requirement to get notified(i do not know how) if a file is created inside say /dev/umass/xxx

This is required for my app to spawn other drivers. Bascically i could use a loop and see if there were any new entry, 
but this solution does not look good and will consume more CPU.

Can someone suggest a better method to monitor a directory path for dynamic file creation/removal?

Eg: On file creation of /dev/umass/usb01100 & removal of /dev/umass/usb01100?

Thanks in advance for your help.

Regards,
Lavin