From 719d55deef8dae5188980ce59fb36f0e9f9ab517 Mon Sep 17 00:00:00 2001 From: Zvonimir Sabljic Date: Wed, 16 Aug 2023 16:14:05 +0200 Subject: [PATCH] Fix --- pilot/helpers/Project.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pilot/helpers/Project.py b/pilot/helpers/Project.py index 5261a90..7e41841 100644 --- a/pilot/helpers/Project.py +++ b/pilot/helpers/Project.py @@ -136,7 +136,10 @@ class Project: if not file_path.startswith('/'): file_path = '/' + file_path - return (file_path, self.root_path + file_path + '/' + file_name) + if file_name != '': + file_name = '/' + file_name + + return (file_path, self.root_path + file_path + file_name) def save_files_snapshot(self, development_step_id): files = get_files_content(self.root_path, ignore=IGNORE_FOLDERS)