From 4bae6b4d6db7f346fe0f546acda59ef6faa8a327 Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Thu, 22 Aug 2024 09:54:27 +0200 Subject: [PATCH] models.file:File.stem - fix stem returning name instead --- acacore/models/file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acacore/models/file.py b/acacore/models/file.py index 7cb7ae7..fcd3d03 100644 --- a/acacore/models/file.py +++ b/acacore/models/file.py @@ -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: