rjeczalik / notify

File system event notification library on steroids.
MIT License
902 stars 128 forks source link

Does the inotify watch work on android? #133

Closed imsodin closed 6 years ago

imsodin commented 6 years ago

Is there a reason that the inotify watch is not built on android? Generally the kernel feature should be there, is there any restriction imposed by golang.org/x/sys/unix"?

ppknap commented 6 years ago

Hi @imsodin

We didn't test Android builds. However, the code compiles for this target(GOOS=android uses linux build tags) so we can expect that inotify watcher works.

Feel free to test it and report any bugs you encounter.

imsodin commented 6 years ago

@ppknap Thanks for the feedback, I didn't realize android isn't a build tag - then we would have tested first. Well @Nutomic tried it and it works :)

ppknap commented 6 years ago

Glad that it works!

BTW: there is android build tag but it's not necessary when linux and android impls are identical.