Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
tl: get: don't overwrite files
Browse files Browse the repository at this point in the history
tell the grab library not to overwrite existing files.
  • Loading branch information
philips committed Aug 13, 2020
1 parent 38228a3 commit 41a00c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/get/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func get(cmd *cobra.Command, args []string) {
os.Exit(1)
}
req.NoCreateDirectories = true
req.SkipExisting = true

req.AfterCopy = func(resp *grab.Response) (err error) {
var f *os.File
Expand Down

0 comments on commit 41a00c7

Please sign in to comment.