This commit is contained in:
Josh Yan 2024-07-05 15:44:49 -07:00
parent 34d197000d
commit c88774ffeb
2 changed files with 9 additions and 6 deletions

View File

@ -1,5 +1,7 @@
package cmd
import "errors"
func localCopy(src, target string) error {
return defaultCopy(src, target)
return errors.New("no local copy implementation for linux")
}

View File

@ -1,12 +1,12 @@
package cmd
import (
"os"
"path/filepath"
"syscall"
)
import "errors"
func localCopy(src, target string) error {
return errors.New("no local copy implementation for windows")
}
/* func localCopy(src, target string) error {
dirPath := filepath.Dir(target)
if err := os.MkdirAll(dirPath, 0o755); err != nil {
@ -51,3 +51,4 @@ func copyFileEx(srcHandle, dstHandle syscall.Handle) error {
return nil
}
*/