From 51a9d4f3d2b2a27d3d12eb3458db7576b119dffc Mon Sep 17 00:00:00 2001 From: Abhi <8083613+AbhimanyuAryan@users.noreply.github.com> Date: Mon, 10 Apr 2023 21:42:46 +0530 Subject: [PATCH] filename same as rootdir not downloading --- app/resources/applications/ApplicationsController.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/resources/applications/ApplicationsController.jl b/app/resources/applications/ApplicationsController.jl index 27dced7c..7840b021 100755 --- a/app/resources/applications/ApplicationsController.jl +++ b/app/resources/applications/ApplicationsController.jl @@ -450,7 +450,7 @@ function download(app) f = open(filepath, "r") content = read(f, String) close(f) - zipfilepath = appname * split(filepath, appname)[2] + zipfilepath = joinpath(appname, split(filepath, "$appname/")[2]) zf = ZipFile.addfile(w, zipfilepath; method=(compress ? ZipFile.Deflate : ZipFile.Store)) write(zf, content) end