mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
15 lines
270 B
Go
15 lines
270 B
Go
package docker
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
)
|
|
|
|
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
|
|
}
|