Skip to content

Commit

Permalink
fix for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
simleo committed Dec 10, 2024
1 parent a5bf0cb commit 419670d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocrate/model/file_or_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 419670d

Please sign in to comment.