|
|
How to get notified if a new file is created inside a dir?
|
|
06/21/2011 7:28 AM
post86737
|
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
|
|
|
|
|