From cd1fce32118941c7f555ebffa34e12e3ab70f115 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 23 Sep 2021 22:36:14 -0700 Subject: [PATCH] Add aliases is_directory, is_folder -> is_dir. --- voussoirkit/pathclass.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/voussoirkit/pathclass.py b/voussoirkit/pathclass.py index 421b12d..fd9814c 100644 --- a/voussoirkit/pathclass.py +++ b/voussoirkit/pathclass.py @@ -235,6 +235,9 @@ class Path: def is_dir(self): return os.path.isdir(self.absolute_path) + is_directory = is_dir + is_folder = is_dir + @property def is_file(self): return os.path.isfile(self.absolute_path)