Closed Bug 403943 Opened 18 years ago Closed 17 years ago

Provide components for observing directory mutations?

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 403436

People

(Reporter: WeirdAl, Unassigned)

Details

<WeirdAl> Does anyone know how to write a callback for directories getting new files? I'm thinking about keeping an eye on when the files update. <biesi> WeirdAl: don't think we provide an abstraction for that <WeirdAl> biesi: I _know_ we don't. I'm thinking it'd be really nice to write one. <biesi> oh ok. well it depends on the OS <WeirdAl> let's talk the big three - Linux, Mac, Windows. I ran into a reference on Windows for a starting point yesterday - FindFirstChangeNotification <WeirdAl> http://msdn2.microsoft.com/en-us/library/aa365261.aspx <luser> OSX leopard has some new api <shaver> linux has dnotify and something else <shaver> OS X has had a few <biesi> there's some library on linux whose name I keep forgetting <biesi> in fact, iirc there are two, one of which needing a daemon <biesi> libfam is the daemon one <luser> oh hm, we're using one of them in the socorro processor <shaver> inotify and dnotify, I guess <WeirdAl> so, let me be dense here and ask - would this be XPCOM or NSPR? <shaver> both? <luser> fam <luser> is one of the linux ones <biesi> ah, gamin was the other one <WeirdAl> shaver: hehe. I think it's closer to XPCOM, because that's where nsLocalFile*.cpp live. <WeirdAl> but I could also see this as an extension first. <shaver> I think you want NSPR primitives, and XPCOM wrapper, but sure <WeirdAl> ah, right <luser> biesi: that might be what we were using <WeirdAl> -- we'll be writing code in-house for the Windows stuff over the next day or so (we need it, badly), but I'll be looking to see if we can expand it to the other platforms.
Version: 1.8 Branch → Trunk
wtc: Would this bug interest you? It might be in the same areas, roughly, as bug 421029.
Marking this as a duplicate of bug 403436.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.