summaryrefslogtreecommitdiff
path: root/cmd/rescribe/main.go
diff options
context:
space:
mode:
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)
}