From dfe2b5795282181dd568ccbb3c24726d05c59d34 Mon Sep 17 00:00:00 2001 From: Andrew Arneson Date: Tue, 23 Apr 2024 22:59:18 -0600 Subject: [PATCH] Allow network path libraries Swap normalized path strip from using strip to using rstrip to avoid stripping leading slashes --- tagstudio/src/core/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tagstudio/src/core/library.py b/tagstudio/src/core/library.py index 62c22531..f5196d31 100644 --- a/tagstudio/src/core/library.py +++ b/tagstudio/src/core/library.py @@ -540,7 +540,7 @@ class Library: 2: File creation error """ - path = os.path.normpath(path).strip('\\') + path = os.path.normpath(path).rstrip('\\') if ts_core.TS_FOLDER_NAME in path: return 1