1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-15 15:53:26 +00:00

Follow-up changes for PR#259

This commit is contained in:
Gilbert Chen
2017-11-10 13:50:22 -05:00
parent 669d5ed3f4
commit a6de3c1e74
2 changed files with 13 additions and 1 deletions

View File

@@ -120,7 +120,7 @@ func (storage *GCDStorage) shouldRetry(threadIndex int, err error) (bool, error)
}
// convertFilePath converts the path for a fossil in the form of 'chunks/id.fsl' to 'fossils/id'. This is because
// ACD doesn't support file renaming. Instead, it only allows one file to be moved from one directory to another.
// GCD doesn't support file renaming. Instead, it only allows one file to be moved from one directory to another.
// By adding a layer of path conversion we're pretending that we can rename between 'chunks/id' and 'chunks/id.fsl'
func (storage *GCDStorage) convertFilePath(filePath string) string {
if strings.HasPrefix(filePath, "chunks/") && strings.HasSuffix(filePath, ".fsl") {