master
Bel LaPointe 2019-02-28 16:41:15 -07:00
parent 49b95cf5a5
commit e9038f7194
1 changed files with 1 additions and 4 deletions

View File

@ -239,10 +239,7 @@ func (ex *Exchange) handlerPodcast(item *rss.Item) {
}
defer resp.Body.Close()
if err := os.MkdirAll(ex.savepath, os.ModePerm); err != nil && err != os.ErrExist {
log.Printf("cannot make path %q for saving: %v", ex.savepath, err)
continue
}
os.MkdirAll(ex.savepath, os.ModePerm)
out, err := os.Create(path.Join(ex.savepath, path.Base(link)))
if err != nil {
log.Printf("cannot create file %q for saving: %v", path.Join(ex.savepath, path.Base(link)), err)