watching for directory/file changes using golang/windows

5,332 views
Skip to first unread message

Bhaskar teja Yerneni

unread,
Jul 1, 2012, 7:33:23 AM7/1/12
to golan...@googlegroups.com
Hi,

I have been working on a Javascript and css minification and concatenation server using go 1.0.2


wondering if golang1.0.2 supports directory and file changes watcher lib under windows.

Please give me some pointers regarding this.

Thank you,
Bhaskar teja

Dave Cheney

unread,
Jul 1, 2012, 7:52:14 AM7/1/12
to Bhaskar teja Yerneni, golan...@googlegroups.com

Archos

unread,
Jul 1, 2012, 8:27:35 AM7/1/12
to golang-nuts
See winfsnotify in the Go experimental packages:

https://github.com/kless/go-exp

Bhaskar teja Yerneni

unread,
Jul 1, 2012, 8:34:23 AM7/1/12
to golan...@googlegroups.com, Bhaskar teja Yerneni
Thanks Dave, could you please let me know how to install the package. i couldnt find Make file

DisposaBoy

unread,
Jul 1, 2012, 8:40:18 AM7/1/12
to golan...@googlegroups.com, Bhaskar teja Yerneni


On Sunday, July 1, 2012 1:34:23 PM UTC+1, Bhaskar teja Yerneni wrote:
Thanks Dave, could you please let me know how to install the package. i couldnt find Make file


`go get github.com/howeyc/fsnotify` almost all go packages can be installed that way see: http://golang.org/cmd/go/#Download_and_install_packages_and_dependencies 

Bhaskar teja Yerneni

unread,
Jul 1, 2012, 9:22:50 AM7/1/12
to golan...@googlegroups.com, Bhaskar teja Yerneni
Hi Dave,

tried fsnotify and it works pretty good for directories and files.
however it is not giving the change events for directories when something changes inside the dir - two levels down.
I mean change events for directory trees.
any plans to support it in future?

Thanks,
Bhaskar

On Sunday, July 1, 2012 5:22:14 PM UTC+5:30, Dave Cheney wrote:

Mike Rosset

unread,
Jul 1, 2012, 3:34:58 PM7/1/12
to Bhaskar teja Yerneni, golan...@googlegroups.com
I just made my own. https://github.com/str1ngs/testit/blob/master/main.go

change doTests() to whatever you need it to do. if you find it useful
let me know I'll make it into a more generic, reusable package

ran...@thoughtworks.com

unread,
Mar 9, 2017, 9:55:47 AM3/9/17
to golang-nuts, prud...@gmail.com, dispo...@dby.me
Hi DisposeBoy, I am using it. Its really cool. But I want to use it for some changes in some cloud directory. How can I do that?

justinas kilciauskas

unread,
Apr 5, 2023, 1:43:29 PM4/5/23
to golang-nuts

justinas kilciauskas

unread,
Apr 5, 2023, 1:43:38 PM4/5/23
to golang-nuts
On Sunday, July 1, 2012 at 2:33:23 PM UTC+3 Bhaskar teja Yerneni wrote:
Reply all
Reply to author
Forward
0 new messages