FAQ
fsnotify has a new API available at:
https://github.com/go-fsnotify/fsnotify

Issues are consolidated in one place:
https://github.com/go-fsnotify/fsnotify/issues

Work is underway on improving the codebase and fixing bugs, with plans to
incorporate FSEvents (OS X) and FEN (Solaris). Please consider adopting the
new API and reporting issues to help ensure that fsnotify is rock solid.
Core tools like godoc and cmd/go will hopefully adopt fsnotify in the Go
1.5 time frame.

Thanks!

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Archos at Jul 10, 2014 at 6:56 am
    I have used three different libraries:

    - "code.google.com/p/go.exp/winfsnotify" for Windows
    - "github.com/howeyc/fsnotify" for BSD systems (included Mac OS X)
    - "code.google.com/p/go.exp/inotify" for Linux

    Does your library supports all those systems correctly?

    El jueves, 10 de julio de 2014 06:08:19 UTC+1, Nathan Youngman escribió:
    fsnotify has a new API available at:
    https://github.com/go-fsnotify/fsnotify

    Issues are consolidated in one place:
    https://github.com/go-fsnotify/fsnotify/issues

    Work is underway on improving the codebase and fixing bugs, with plans to
    incorporate FSEvents (OS X) and FEN (Solaris). Please consider adopting the
    new API and reporting issues to help ensure that fsnotify is rock solid.
    Core tools like godoc and cmd/go will hopefully adopt fsnotify in the Go
    1.5 time frame.

    Thanks!
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Nathan Youngman at Jul 10, 2014 at 3:58 pm
    Hi Archos,

    https://github.com/howeyc/fsnotify is v0.9.0 of fsnotify.

    In order to change the API, I setup https://github.com/go-fsnotify/fsnotify.
    The API is based on this document http://goo.gl/MrYxyA and the discussions
    around it, though it's not quite there yet and is expected to change some
    more (with gopkg.in providing a means to version those changes).

    code.google.com/p/go.exp/fsnotify is a mirror of howeyc/fsnotify that I've
    been submitting CLs to, some which are still pending. I found it wasn't the
    best place for me to maintain the project, and I really wanted some sort of
    versioning so people could start using the library without worrying about
    breaking changes.

    The history of howeyc/fsnotify <https://github.com/howeyc/fsnotify> is
    essentially a copy/paste of winfsnotify and inotify, with the addition of
    kqueue for BSD and a lot of work dealing with edge cases and trying to
    provide similar behavior across them.

    So to answer your question, yes, it supports all those systems. Correctly
    is a bit subjective, I'm not sure. I suspect the implementation to change
    over the next several months as we discover what that is.

    Nathan.

    On Thursday, 10 July 2014 00:56:35 UTC-6, Archos wrote:

    I have used three different libraries:

    - "code.google.com/p/go.exp/winfsnotify" for Windows
    - "github.com/howeyc/fsnotify" for BSD systems (included Mac OS X)
    - "code.google.com/p/go.exp/inotify" for Linux

    Does your library supports all those systems correctly?

    El jueves, 10 de julio de 2014 06:08:19 UTC+1, Nathan Youngman escribió:
    fsnotify has a new API available at:
    https://github.com/go-fsnotify/fsnotify

    Issues are consolidated in one place:
    https://github.com/go-fsnotify/fsnotify/issues

    Work is underway on improving the codebase and fixing bugs, with plans to
    incorporate FSEvents (OS X) and FEN (Solaris). Please consider adopting the
    new API and reporting issues to help ensure that fsnotify is rock solid.
    Core tools like godoc and cmd/go will hopefully adopt fsnotify in the Go
    1.5 time frame.

    Thanks!
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Mgutz at Jul 10, 2014 at 11:00 pm
    I replied to this earlier so please excuse if this is dupe later.

    The easiest way to use fsnotify for utilities is github.com/mgutz/gosu
    which is watcher based on glob patterns to run tasks. It uses this excellent
    library underneath. I did run into some issues on Mac though such as
    receiving several MODIFY events with the same modified time. A file save
    resulted into a RENAME followed by a delayed CREATE event upon changing
    another file. I have workarounds for these. I'll switch over the new repo
    and report any issues there. Thanks for the library!
    On Thursday, July 10, 2014 8:58:15 AM UTC-7, Nathan Youngman wrote:


    Hi Archos,

    https://github.com/howeyc/fsnotify is v0.9.0 of fsnotify.

    In order to change the API, I setup
    https://github.com/go-fsnotify/fsnotify. The API is based on this
    document http://goo.gl/MrYxyA and the discussions around it, though it's
    not quite there yet and is expected to change some more (with gopkg.in
    providing a means to version those changes).

    code.google.com/p/go.exp/fsnotify is a mirror of howeyc/fsnotify that
    I've been submitting CLs to, some which are still pending. I found it
    wasn't the best place for me to maintain the project, and I really wanted
    some sort of versioning so people could start using the library without
    worrying about breaking changes.

    The history of howeyc/fsnotify <https://github.com/howeyc/fsnotify> is
    essentially a copy/paste of winfsnotify and inotify, with the addition of
    kqueue for BSD and a lot of work dealing with edge cases and trying to
    provide similar behavior across them.

    So to answer your question, yes, it supports all those systems. Correctly
    is a bit subjective, I'm not sure. I suspect the implementation to change
    over the next several months as we discover what that is.

    Nathan.

    On Thursday, 10 July 2014 00:56:35 UTC-6, Archos wrote:

    I have used three different libraries:

    - "code.google.com/p/go.exp/winfsnotify" for Windows
    - "github.com/howeyc/fsnotify" for BSD systems (included Mac OS X)
    - "code.google.com/p/go.exp/inotify" for Linux

    Does your library supports all those systems correctly?

    El jueves, 10 de julio de 2014 06:08:19 UTC+1, Nathan Youngman escribió:
    fsnotify has a new API available at:
    https://github.com/go-fsnotify/fsnotify

    Issues are consolidated in one place:
    https://github.com/go-fsnotify/fsnotify/issues

    Work is underway on improving the codebase and fixing bugs, with plans
    to incorporate FSEvents (OS X) and FEN (Solaris). Please consider adopting
    the new API and reporting issues to help ensure that fsnotify is rock
    solid. Core tools like godoc and cmd/go will hopefully adopt fsnotify in
    the Go 1.5 time frame.

    Thanks!
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Nathan Youngman at Jul 12, 2014 at 8:30 am
    Thanks mgutz.

    If you're wondering what has changed, howeyc/fsnotify is v0.9.0:
    https://github.com/go-fsnotify/fsnotify/blob/master/CHANGELOG.md

    I appreciate any bug reports or pull requests.
    Nathan.

    P.S. If I don't reply promptly over the coming week, it's because I'm away.
    I will follow up after my holiday. :-)


    On Thursday, 10 July 2014 17:00:44 UTC-6, mgutz wrote:

    I replied to this earlier so please excuse if this is dupe later.

    The easiest way to use fsnotify for utilities is github.com/mgutz/gosu
    which is watcher based on glob patterns to run tasks. It uses this excellent
    library underneath. I did run into some issues on Mac though such as
    receiving several MODIFY events with the same modified time. A file save
    resulted into a RENAME followed by a delayed CREATE event upon changing
    another file. I have workarounds for these. I'll switch over the new repo
    and report any issues there. Thanks for the library!
    On Thursday, July 10, 2014 8:58:15 AM UTC-7, Nathan Youngman wrote:


    Hi Archos,

    https://github.com/howeyc/fsnotify is v0.9.0 of fsnotify.

    In order to change the API, I setup
    https://github.com/go-fsnotify/fsnotify. The API is based on this
    document http://goo.gl/MrYxyA and the discussions around it, though it's
    not quite there yet and is expected to change some more (with gopkg.in
    providing a means to version those changes).

    code.google.com/p/go.exp/fsnotify is a mirror of howeyc/fsnotify that
    I've been submitting CLs to, some which are still pending. I found it
    wasn't the best place for me to maintain the project, and I really wanted
    some sort of versioning so people could start using the library without
    worrying about breaking changes.

    The history of howeyc/fsnotify <https://github.com/howeyc/fsnotify> is
    essentially a copy/paste of winfsnotify and inotify, with the addition of
    kqueue for BSD and a lot of work dealing with edge cases and trying to
    provide similar behavior across them.

    So to answer your question, yes, it supports all those systems. Correctly
    is a bit subjective, I'm not sure. I suspect the implementation to change
    over the next several months as we discover what that is.

    Nathan.

    On Thursday, 10 July 2014 00:56:35 UTC-6, Archos wrote:

    I have used three different libraries:

    - "code.google.com/p/go.exp/winfsnotify" for Windows
    - "github.com/howeyc/fsnotify" for BSD systems (included Mac OS X)
    - "code.google.com/p/go.exp/inotify" for Linux

    Does your library supports all those systems correctly?

    El jueves, 10 de julio de 2014 06:08:19 UTC+1, Nathan Youngman escribió:
    fsnotify has a new API available at:
    https://github.com/go-fsnotify/fsnotify

    Issues are consolidated in one place:
    https://github.com/go-fsnotify/fsnotify/issues

    Work is underway on improving the codebase and fixing bugs, with plans
    to incorporate FSEvents (OS X) and FEN (Solaris). Please consider adopting
    the new API and reporting issues to help ensure that fsnotify is rock
    solid. Core tools like godoc and cmd/go will hopefully adopt fsnotify in
    the Go 1.5 time frame.

    Thanks!
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Nate Finch at Aug 6, 2014 at 10:30 am
    It could really use better package-level documentation. I'd like a basic
    example right at the top of how to use the package to watch one or more
    files.

    The docs on NewWatcher() should not mention inotify.

    The example on NewWatcher won't actually do anything, because you're
    defering a close and there's nothing stopping the function from exiting
    immediately.

    The docs on Close should not mention inotify. The docs on Close also talk
    a lot about implementation that is not exposed to the end user. Don't do
    that. :)

    The docs on Watcher.Add should make it clear if name must be a file or if
    it can be a directory, too, and if a directory, it watches only the
    immediate directory, or subdirectories as well.

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Mario at Jul 11, 2014 at 3:15 am
    I think the easiest way to use it is to use github.com/mgutz/gosu which
    uses howeyc/fsnotify. gosu is watcher utility based on glob patterns and
    reruns tasks as needed.

    I had to create workarounds from multiple modify events having same
    modified time, a file save resulting in a RENAME then a delayed CREATE when
    I perform some other file operation. I'll start using your new version and
    file issues there. Thanks for the package.
    On Thursday, July 10, 2014 8:58:15 AM UTC-7, Nathan Youngman wrote:


    Hi Archos,

    https://github.com/howeyc/fsnotify is v0.9.0 of fsnotify.

    In order to change the API, I setup
    https://github.com/go-fsnotify/fsnotify. The API is based on this
    document http://goo.gl/MrYxyA and the discussions around it, though it's
    not quite there yet and is expected to change some more (with gopkg.in
    providing a means to version those changes).

    code.google.com/p/go.exp/fsnotify is a mirror of howeyc/fsnotify that
    I've been submitting CLs to, some which are still pending. I found it
    wasn't the best place for me to maintain the project, and I really wanted
    some sort of versioning so people could start using the library without
    worrying about breaking changes.

    The history of howeyc/fsnotify <https://github.com/howeyc/fsnotify> is
    essentially a copy/paste of winfsnotify and inotify, with the addition of
    kqueue for BSD and a lot of work dealing with edge cases and trying to
    provide similar behavior across them.

    So to answer your question, yes, it supports all those systems. Correctly
    is a bit subjective, I'm not sure. I suspect the implementation to change
    over the next several months as we discover what that is.

    Nathan.

    On Thursday, 10 July 2014 00:56:35 UTC-6, Archos wrote:

    I have used three different libraries:

    - "code.google.com/p/go.exp/winfsnotify" for Windows
    - "github.com/howeyc/fsnotify" for BSD systems (included Mac OS X)
    - "code.google.com/p/go.exp/inotify" for Linux

    Does your library supports all those systems correctly?

    El jueves, 10 de julio de 2014 06:08:19 UTC+1, Nathan Youngman escribió:
    fsnotify has a new API available at:
    https://github.com/go-fsnotify/fsnotify

    Issues are consolidated in one place:
    https://github.com/go-fsnotify/fsnotify/issues

    Work is underway on improving the codebase and fixing bugs, with plans
    to incorporate FSEvents (OS X) and FEN (Solaris). Please consider adopting
    the new API and reporting issues to help ensure that fsnotify is rock
    solid. Core tools like godoc and cmd/go will hopefully adopt fsnotify in
    the Go 1.5 time frame.

    Thanks!
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJul 10, '14 at 5:08a
activeAug 6, '14 at 10:30a
posts7
users5
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase