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