os copy
This commit is contained in:
parent
34d197000d
commit
c88774ffeb
@ -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")
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user