dir: Fix creation of atom template directory

This commit is contained in:
adnano 2021-05-15 21:27:09 -04:00
parent 9f0a4d822e
commit 6adfcae48d

2
dir.go
View file

@ -245,7 +245,7 @@ func (d *Dir) write(dstDir string, task *Task) error {
if d.feed != nil { if d.feed != nil {
const path = "atom.xml" const path = "atom.xml"
dstPath := pathpkg.Join(dirPath, path) dstPath := pathpkg.Join(dirPath, path)
os.MkdirAll(dstDir, 0755) os.MkdirAll(dirPath, 0755)
if err := os.WriteFile(dstPath, d.feed, 0644); err != nil { if err := os.WriteFile(dstPath, d.feed, 0644); err != nil {
return err return err
} }