mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
8b321387c0
### Purpose Fix #9241 by expanding tildes in version paths. When creating the versioner file system, first try to expand any leading tildes to the user's home directory before handling relative paths. This makes a version path `"~/p"` expand to `"$HOME/p"` instead of `"/folder/~/p"`. ### Testing Added a test to lib/versioner that exercises this code path. Also manually tested with local syncthing instances. |
||
---|---|---|
.. | ||
_external_test | ||
.gitignore | ||
debug.go | ||
empty_dir_tracker_test.go | ||
empty_dir_tracker.go | ||
external_test.go | ||
external.go | ||
simple_test.go | ||
simple.go | ||
staggered_test.go | ||
staggered.go | ||
trashcan_test.go | ||
trashcan.go | ||
util.go | ||
versioner.go |