Implement FileExists in files storage as simple stat to improve performance

This commit is contained in:
Oliver Sauder
2017-11-21 09:58:25 +01:00
parent 2e488608ca
commit 3efa1052fa
3 changed files with 48 additions and 11 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ func packageIndexByHash(file *indexFile, ext string, hash string, sum string) er
}
// create symlink
err = file.parent.publishedStorage.SymLink(sum, filepath.Join(dst, indexfile))
err = file.parent.publishedStorage.SymLink(filepath.Join(dst, sum), filepath.Join(dst, indexfile))
if err != nil {
return fmt.Errorf("Acquire-By-Hash: error creating symlink %s", filepath.Join(dst, indexfile))
}