Rename CopyDirectory to CopyDir
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
d96e6e3952
commit
aaf18b5962
4 changed files with 6 additions and 6 deletions
|
@ -66,7 +66,7 @@ func (n *Naive) Prepare(dst, parent string) ([]containerd.Mount, error) {
|
|||
}
|
||||
|
||||
// Now, we copy the parent filesystem, just a directory, into dst.
|
||||
if err := fs.CopyDirectory(dst, filepath.Join(parent, "data")); err != nil {
|
||||
if err := fs.CopyDir(dst, filepath.Join(parent, "data")); err != nil {
|
||||
return nil, errors.Wrap(err, "copying of parent failed")
|
||||
}
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ func (n *Naive) Commit(diff, dst string) error {
|
|||
|
||||
// Move the data into our metadata directory, we could probably save disk
|
||||
// space if we just saved the diff, but let's get something working.
|
||||
if err := fs.CopyDirectory(filepath.Join(active.metadata, "data"), dst); err != nil {
|
||||
if err := fs.CopyDir(filepath.Join(active.metadata, "data"), dst); err != nil {
|
||||
return errors.Wrap(err, "copying of parent failed")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue