blob: 4f0ea8c4fd6709cc40c526fe059db755720539d3 [file] [log] [blame]
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
}