Hi,
I am trying to make a patch for recursive directory watcher on linux
using inotify event.

When a new directory under watched directory is created, inotify event
only gives me event->name relative to the watched directory.
This makes it difficult to get the inode number of new directory
because I am keeping track of watched inode numbers so far.

I need to get "/xxx/yyy/newDirectory" from bare "newDirectory" that
inotify event gives me so that I can get the inode number for
newDirectory and then in turn update my watched inode structure.

What would be a good way to get the absolute path of a new event that
inotify just reported without having to maintain my own data
structure, i.e without having data structure that keeps watch
descriptor and it's watched path?

Thanks


--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to