From 419670d42ade081e94a08721ec5a43058286c31c Mon Sep 17 00:00:00 2001 From: simleo Date: Tue, 10 Dec 2024 10:02:38 +0100 Subject: [PATCH] fix for windows --- rocrate/model/file_or_dir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocrate/model/file_or_dir.py b/rocrate/model/file_or_dir.py index 8572e9b..4b37509 100644 --- a/rocrate/model/file_or_dir.py +++ b/rocrate/model/file_or_dir.py @@ -47,5 +47,5 @@ def __init__(self, crate, source=None, dest_path=None, fetch_remote=False, if is_url(str(source)): identifier = os.path.basename(source) if fetch_remote else source else: - identifier = os.path.basename(str(source).rstrip(os.sep)) + identifier = os.path.basename(str(source).rstrip("/")) super().__init__(crate, identifier, properties)