Refactor variable names and revert shadow copy path computation

This commit is contained in:
Etienne Charlier
2017-06-07 21:01:50 +02:00
parent c88e148d59
commit c688c501d3
7 changed files with 41 additions and 43 deletions

View File

@@ -510,10 +510,8 @@ func CreateShadowCopy(top string, shadowCopy bool) (shadowTop string) {
snapshotPath := uint16ArrayToString(properties.SnapshotDeviceObject)
duplicacyDirectory := GetDotDuplicacyPathName(top)
shadowLink = path.Join(duplicacyDirectory, "shadow")
// FIXME: Not using path.Join : is this intentional ?
//shadowLink = path.Join(top, DUPLICACY_DIRECTORY) + "\\shadow"
preferencePath := GetDuplicacyPreferencePath(top)
shadowLink = preferencePath + "\\shadow"
os.Remove(shadowLink)
err = os.Symlink(snapshotPath + "\\", shadowLink)
if err != nil {