diff --git a/service/fileService.go b/service/fileService.go index 2e16def..20a5190 100644 --- a/service/fileService.go +++ b/service/fileService.go @@ -197,11 +197,11 @@ func createFolder(folder string, parent string) string { func createDataFolderIfNotExists(folder string) string { dataPath := os.Getenv("DATA") - return createFolder(dataPath, folder) + return createFolder(folder,dataPath) } func createConfigFolderIfNotExists(folder string) string { dataPath := os.Getenv("CONFIG") - return createFolder(dataPath, folder) + return createFolder(folder,dataPath) } func getFileName(link string, title string, defaultExtension string) string {