|
@@ -425,7 +425,10 @@ func (cfg *Configuration) prepare(myID protocol.DeviceID) {
|
|
|
// This way in the tests, we get away without OS specific separators
|
|
|
// in the test configs.
|
|
|
folder.RawPath = filepath.Dir(folder.RawPath + string(filepath.Separator))
|
|
|
- if folder.RawPath[len(folder.RawPath)-1] != filepath.Separator {
|
|
|
+
|
|
|
+ // If we're not on Windows, we want the path to end with a slash to
|
|
|
+ // penetrate symlinks. On Windows, paths must not end with a slash.
|
|
|
+ if runtime.GOOS != "windows" && folder.RawPath[len(folder.RawPath)-1] != filepath.Separator {
|
|
|
folder.RawPath = folder.RawPath + string(filepath.Separator)
|
|
|
}
|
|
|
|