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

This commit is contained in:
Andrey Smirnov committed 2014-08-05 14:50:06 +04:00
1 parent 625a38c578
commit da6d5b7cf8
6 files changed
+98 -9

No files matched your search

+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