implement builtin copy operation

Related #61 and #113
This commit is contained in:
Gokcehan committed 2019-02-26 20:12:13 +03:00
1 parent fd1af47233
commit d6e9aece51
5 files changed
+190 -13

No files matched your search

+2 -2
View File
@@ -114,7 +114,7 @@ func shellCommand(s string, args []string) *exec.Cmd {
return exec.Command(gOpts.shell, args...)
}
func pasteCommand(list []string, dir *dir, cp bool) *exec.Cmd {
func pasteCommand(list []string, dstDir string, cp bool) *exec.Cmd {
var sh string
var args []string
@@ -134,7 +134,7 @@ func pasteCommand(list []string, dir *dir, cp bool) *exec.Cmd {
args = append(args, "-i")
args = append(args, list...)
args = append(args, dir.path)
args = append(args, dstDir)
return exec.Command(sh, args...)
}