From 8c054e60250b6020e822526239ba899e86a314fe Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Fri, 31 Jan 2025 01:16:50 +0000 Subject: [PATCH] Resolve "With rename pattern, destination files can have "//" in DB if tags missing" --- lib/files/getDestDir | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/files/getDestDir b/lib/files/getDestDir index e92a899..fd031b0 100644 --- a/lib/files/getDestDir +++ b/lib/files/getDestDir @@ -86,7 +86,8 @@ getDestDir() { echo "$thispart" >&${toascii[1]} read -r -u${toascii[0]} thispart fi - destdir+="/$(sanitizeFile "$thispart" dir)" + sanitized="$(sanitizeFile "$thispart" dir)" + destdir+="${sanitized:+/}$sanitized" part=${part#*/} done fi