diff --git a/acacore/__version__.py b/acacore/__version__.py index 8e10cb4..e94f36f 100644 --- a/acacore/__version__.py +++ b/acacore/__version__.py @@ -1 +1 @@ -__version__ = "3.0.4" +__version__ = "3.0.5" diff --git a/acacore/models/file.py b/acacore/models/file.py index bc06af5..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: @@ -369,13 +369,13 @@ def suffixes(self) -> str: :return: All the file extensions as a string. """ - suffixes: str = "" + suffixes: list[str] = [] for suffix in self.relative_path.suffixes[::-1]: if is_valid_suffix(suffix): - suffixes += suffix + suffixes.insert(0, suffix) else: break - return suffixes + return "".join(suffixes) @suffixes.setter def suffixes(self, new_suffixes: str): diff --git a/pyproject.toml b/pyproject.toml index f87a0f7..e8d4687 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "acacore" -version = "3.0.4" +version = "3.0.5" description = "" authors = ["Matteo Campinoti "] license = "GPL-3.0"