From 05586e7e7946c49ca0ccb8fffde2cd9e3fbc901a Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 10 Oct 2021 00:31:25 -0700 Subject: [PATCH] Let is_directory be canonical function, but keep the aliases. --- voussoirkit/pathclass.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/voussoirkit/pathclass.py b/voussoirkit/pathclass.py index 881c412..76fdd03 100644 --- a/voussoirkit/pathclass.py +++ b/voussoirkit/pathclass.py @@ -232,11 +232,11 @@ class Path: return children @property - def is_dir(self): + def is_directory(self): return os.path.isdir(self.absolute_path) - is_directory = is_dir - is_folder = is_dir + is_dir = is_directory + is_folder = is_directory @property def is_file(self):