I need to know how to detect when a file changes using Go. I know that Unix provides a function named fcntl()
which notifies when a specific file is changed but I have not found this one in Go.
Please help me.
去语言如何检测文件变化?
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
5条回答 默认 最新
- doudao9896 2014-03-26 20:51关注
There is currently an experimental package here. It should be merged into core as
os/fsnotify
in go1.3本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报