typo
parent
49b95cf5a5
commit
e9038f7194
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue