Skip to content

Commit

Permalink
models.file:File.stem - fix stem returning name instead
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Aug 22, 2024
1 parent 3555e30 commit 4bae6b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acacore/models/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,11 @@ def stem(self) -> str:
:return: File stem.
"""
return self.relative_path.name
return self.relative_path.stem

@stem.setter
def stem(self, new_stem: str):
self.relative_path = self.relative_path.with_name(new_stem)
self.relative_path = self.relative_path.with_stem(new_stem)

@property
def suffix(self) -> str:
Expand Down

0 comments on commit 4bae6b4

Please sign in to comment.