archive: fix up documentation for AddItems
This commit is contained in:
@@ -184,10 +184,11 @@ func (archive *Archive) Write(path string, mode os.FileMode) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adds the given items in the map to the archive. The map format is {source path:dest path}.
|
// AddItems adds the given items in the map to the archive. The map format is
|
||||||
// Internally this just calls AddItem on each key,value pair in the map.
|
// {source path:dest path}. Internally this just calls AddItem on each
|
||||||
func (archive *Archive) AddItems(f filelist.FileLister) error {
|
// key,value pair in the map.
|
||||||
list, err := f.List()
|
func (archive *Archive) AddItems(flister filelist.FileLister) error {
|
||||||
|
list, err := flister.List()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user