Simon Frei
98ab9e8733
node: Return traverse error as os.PathError
2017-11-20 12:34:23 +01:00
Michael Nagel
7cf0e6ce23
include node name in error when traversing fails
...
I use Syncthing to recursively watch my whole `$HOME`.
It fails on the FUSE mount `.gvfs` and this took me *muuuch* to long to figure out.
With this change it is much more easy to debug such issues.
2016-08-19 00:39:45 +02:00
Rafal Jeczalik
9ae2c42a58
remove dead code
2015-03-16 21:21:30 +01:00
Pawel Knap
128e2d9c9f
rename 'skip' to 'errSkip' which makes go-linter happy + simple data race fix
2015-03-13 18:36:48 +01:00
Rafal Jeczalik
5a8438b920
remove spurious TODOs
2015-03-08 13:13:06 +01:00
Rafal Jeczalik
3dddcc3ac4
implement Stop for non-recursive tree
...
Part of #5 .
2015-02-25 15:20:38 +01:00
Rafal Jeczalik
4f78a83e66
implement Watch for non-recursive tree
...
Part of #5 .
2015-02-25 15:20:38 +01:00
Rafal Jeczalik
bd62d61df5
update license / authors
...
Done with:
~ $ find . -type f -name '*.go' -exec prepend -f preamble.txt {} \;
Automate with CI?
2015-02-15 13:44:09 +01:00
Rafal Jeczalik
4b0535ec1c
tree: implement Stop for recursive watchers ( #6 )
2015-02-08 14:49:05 +01:00
Rafal Jeczalik
463963cd6f
add more test-cases for recursive tree ( #6 )
...
- fix rewatching parent leaf directory (case 1)
- remove dead code (case 3)
2015-01-26 22:41:47 +01:00
Rafal Jeczalik
86d2374d21
add Watch implementation for recursive watchers ( #6 )
2015-01-25 23:15:31 +01:00
Rafal Jeczalik
82431eaf54
make internal structs unexported
2015-01-21 22:41:21 +01:00
Rafal Jeczalik
b720090161
split tree traversal / building into Node and Root ( #6 )
...
First part of watchpoint tree refactoring. Currently Tree implements
strategies for setting both recursive and non-recursive watchpoints,
and logic for traversing and buidling tree.
The refactoring is about splitting tree traversing / building into Node
and Root structs, and implementing two separate trees - one for Watcher
and one for RecursiveWatcher.
2015-01-11 17:22:39 +01:00
Rafal Jeczalik
99b274c9f5
tree: fix (*Tree).Stop test
2014-11-27 21:37:12 +01:00
Rafal Jeczalik
0f9a9054f9
tree: actually working path-join-fix for Windows
2014-11-23 23:54:05 +01:00
Rafal Jeczalik
6fea990668
tree: fix path join for Windows
2014-11-23 23:40:15 +01:00
Rafal Jeczalik
e463986b94
Move helper types and function to separate files
...
* types -> node.go
* functions -> util.go
+ spring cleaning
2014-11-23 11:56:23 +01:00