Use the dirname
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Peter Stuifzand 2020-06-24 00:27:48 +02:00
parent e9f9c59714
commit aa980baf50

View File

@ -137,7 +137,7 @@ func saveLinks(fp *FilePages) error {
results = append(results, Document{page.Title})
}
f, err := os.Create(LinksFile)
f, err := os.Create(filepath.Join(fp.dirname, LinksFile)
if err != nil {
return err
}
@ -194,7 +194,7 @@ func saveDocuments(fp *FilePages) error {
})
}
f, err := os.Create(DocumentsFile)
f, err := os.Create(filepath.Join(fp.dirname, DocumentsFile)
if err != nil {
return err
}