diff --git a/voussoirkit/pathclass.py b/voussoirkit/pathclass.py index 7fcd9be..b89e37d 100644 --- a/voussoirkit/pathclass.py +++ b/voussoirkit/pathclass.py @@ -83,6 +83,13 @@ class Path: def depth(self): return len(self.absolute_path.rstrip(self.sep).split(self.sep)) + @property + def dot_extension(self): + extension = self.extension + if extension: + return '.' + extension + return '' + @property def exists(self): return os.path.exists(self.absolute_path)