Fix publish updating (switching) for empty -> empty scenario. #66

This commit is contained in:
Andrey Smirnov
2014-06-11 20:27:49 +04:00
parent 0c6951fcd2
commit 3199fd85fb
+5
View File
@@ -111,6 +111,11 @@ func (storage *PublishedStorage) Filelist(prefix string) ([]string, error) {
return nil
})
if err != nil && os.IsNotExist(err) {
// file path doesn't exist, consider it empty
return []string{}, nil
}
return result, err
}