Add 'force' to LinkFromPool method: overwrite file even if exists and different content. #90

This commit is contained in:
Andrey Smirnov
2014-08-05 14:43:23 +04:00
parent 625a38c578
commit da6d5b7cf8
6 changed files with 99 additions and 10 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ type PublishedStorage interface {
// Remove removes single file under public path
Remove(path string) error
// LinkFromPool links package file from pool to dist's pool location
LinkFromPool(publishedDirectory string, sourcePool PackagePool, sourcePath, sourceMD5 string) error
LinkFromPool(publishedDirectory string, sourcePool PackagePool, sourcePath, sourceMD5 string, force bool) error
// Filelist returns list of files under prefix
Filelist(prefix string) ([]string, error)
// RenameFile renames (moves) file