Paths must not end with slash on Windows

This commit is contained in:
Jakob Borg
2015-10-22 11:39:34 +02:00
parent 503491392d
commit d7a934cf0e
3 changed files with 6 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ var locations = map[locationEnum]string{
locPanicLog: "${config}/panic-${timestamp}.log",
locAuditLog: "${config}/audit-${timestamp}.log",
locGUIAssets: "${config}/gui",
locDefFolder: "${home}/Sync/",
locDefFolder: "${home}/Sync",
}
// expandLocations replaces the variables in the location map with actual

View File

@@ -962,6 +962,7 @@ func defaultConfig(myName string) config.Configuration {
MinDiskFreePct: 1,
Devices: []config.FolderDeviceConfiguration{{DeviceID: myID}},
AutoNormalize: true,
MaxConflicts: -1,
},
}
newCfg.Devices = []config.DeviceConfiguration{