diff options
author | Nick White <git@njw.name> | 2021-06-22 15:35:30 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-06-22 15:35:30 +0100 |
commit | b729f98ac46e3a004eb59732705506bda22a7a03 (patch) | |
tree | d888d0dde0bc3cceed9f4b85ae5bee8b614b026a /cmd/rescribe | |
parent | 99db57df8871bbf37c473d8eeddd0a1cf3de56ad (diff) |
rescribe: Remove erroneous unnecessary mkdir
Diffstat (limited to 'cmd/rescribe')
-rw-r--r-- | cmd/rescribe/main.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index 889a3d2..eb9719f 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -371,12 +371,7 @@ func uploadbook(dir string, name string, conn Pipeliner) error { } func downloadbook(dir string, name string, conn Pipeliner) error { - err := os.MkdirAll(name, 0755) - if err != nil { - log.Fatalln("Failed to create directory", name, err) - } - - err = pipeline.DownloadBestPages(dir, name, conn, false) + err := pipeline.DownloadBestPages(dir, name, conn, false) if err != nil { return fmt.Errorf("Error downloading best pages: %v", err) } |