diff --git a/voussoirkit/pathclass.py b/voussoirkit/pathclass.py index c1a4321..5f55905 100644 --- a/voussoirkit/pathclass.py +++ b/voussoirkit/pathclass.py @@ -139,6 +139,10 @@ class Path: def dot_extension(self): return self.extension.with_dot + @property + def drive(self): + return os.path.splitdrive(self.absolute_path)[0] + @property def exists(self): return os.path.exists(self.absolute_path)