Skip to content

Commit

Permalink
use otiai10/copy for copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Overgaard Hansen committed Nov 4, 2020
1 parent 2ba5e77 commit a9805c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 113 deletions.
111 changes: 0 additions & 111 deletions internal/copy/copy.go

This file was deleted.

4 changes: 2 additions & 2 deletions radarr/radarr.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"path"
"time"

"github.com/martinohansen/moverr/internal/copy"
"github.com/otiai10/copy"
)

// Connection is everything needed to use the Radarr API
Expand Down Expand Up @@ -143,7 +143,7 @@ func (movie Movie) Move(dst string, sym string, conn Connection) error {
dst = path.Join(path.Clean(dst), dir)
sym = path.Join(path.Clean(sym), dir)

err := copy.Directory(src, dst)
err := copy.Copy(src, dst)
if err != nil {
os.RemoveAll(dst)
return err
Expand Down

0 comments on commit a9805c7

Please sign in to comment.