Return self from correct_case instead of self.absolute_path.

This commit is contained in:
Ethan Dalool 2020-09-02 09:11:49 -07:00
parent 27291df9ad
commit 9874f12a2a

View file

@ -138,7 +138,7 @@ class Path:
def correct_case(self):
self.absolute_path = get_path_casing(self.absolute_path)
self.absolute_path = self.absolute_path.replace('/', self.sep).replace('\\', self.sep)
return self.absolute_path
return self
@property
def depth(self):