Skip to content
Snippets Groups Projects
Commit 606e3ff4 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Now do it right ;-)

parent f6c51aa0
No related branches found
No related tags found
No related merge requests found
......@@ -264,7 +264,7 @@ dav_upload_folder() {
# to make something like '../folder1/folder2/folder-to-upload/test.txt'
# into 'private-upload/docs/test.txt'
local server_prefix="${2%?}" #without ending slash
local server_path="${fname/$1/$2}"
local server_path="${fname/$1/$server_prefix}"
# if its a file...
if [[ -f "${fname}" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment