mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
14 lines
270 B
Go
14 lines
270 B
Go
package docker
|
|
|
|
import (
|
|
"os"
|
|
"io"
|
|
)
|
|
|
|
func CopyFile(dstFile, srcFile *os.File) error {
|
|
// No BTRFS reflink suppport, Fall back to normal copy
|
|
|
|
// FIXME: Check the return of Copy and compare with dstFile.Stat().Size
|
|
_, err := io.Copy(dstFile, srcFile)
|
|
return err
|
|
}
|