summaryrefslogtreecommitdiff
path: root/cmd/rescribe/main.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-06-22 15:35:30 +0100
committerNick White <git@njw.name>2021-06-22 15:35:30 +0100
commitb729f98ac46e3a004eb59732705506bda22a7a03 (patch)
treed888d0dde0bc3cceed9f4b85ae5bee8b614b026a /cmd/rescribe/main.go
parent99db57df8871bbf37c473d8eeddd0a1cf3de56ad (diff)
rescribe: Remove erroneous unnecessary mkdir
Diffstat (limited to 'cmd/rescribe/main.go')
-rw-r--r--cmd/rescribe/main.go7
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)
}