From 92358bd8449bbbbb57f507096cf751cee90cc7c5 Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Fri, 29 Jan 2021 13:18:41 +0530 Subject: [PATCH] Fix breaking downloads --- service/fileService.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {