MCPcopy Index your code
hub / github.com/WendellCraft/ModpackDebuggerKit / moveFile

Function moveFile

debug.go:15–24  ·  view source on GitHub ↗
(src, dst string)

Source from the content-addressed store, hash-verified

13)
14
15func moveFile(src, dst string) error {
16 err := os.Rename(src, dst)
17 if err == nil {
18 return nil
19 }
20 if _, ok := err.(*os.LinkError); ok {
21 return copyFile(src, dst)
22 }
23 return err
24}
25
26func copyFile(src, dst string) error {
27 in, err := os.Open(src)

Callers 3

runDebugScanMethod · 0.85
restoreAllModsMethod · 0.85
testGroupMethod · 0.85

Calls 1

copyFileFunction · 0.85

Tested by

no test coverage detected