dirwatch:递归地监视目录和所有子目录中的更改

时间:2021-05-08 15:01:29
【文件属性】:
文件名称:dirwatch:递归地监视目录和所有子目录中的更改
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-08 15:01:29
Go 目录监视 用于递归地监视目录和所有子目录中的更改。 使用包 。 说明文件: 样品用量 notify := func ( ev Event ) { // processing the event ev } // create the watcher which excludes // any folder along the added paths // that matches provided pattern(s). watcher := New ( Notify ( notify ), Exclude ( "/*/*/node_modules" )) defer watcher . Stop () watcher . Add ( dir1 , true ) watcher . Add ( dir2 , false ) watcher . Add ( dir3 , true ) 环境:
【文件预览】:
dirwatch-master
----dirwatch.go(5KB)
----LICENSE(1KB)
----dirwatch_test.go(7KB)
----.gitignore(275B)
----README.md(710B)

网友评论