Skip to content

Commit

Permalink
Adds -r to cp command to allow for the copying of directories
Browse files Browse the repository at this point in the history
  • Loading branch information
cskeeters committed Nov 18, 2024
1 parent b054433 commit c28ebe2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion file_operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ func (m *model) CopyFiles() tea.Cmd {
m.appendError(strings.Join(errors, "\n"))
return nil
} else {
args := append(paths, dst)
args := []string{"-r"}
args = append(args, paths...)
args = append(args, dst)

info := RunBlock("cp", args...)
if info.err != nil {
Expand Down

0 comments on commit c28ebe2

Please sign in to comment.