Let is_directory be canonical function, but keep the aliases.

This commit is contained in:
voussoir 2021-10-10 00:31:25 -07:00
parent 87fbede7d5
commit 05586e7e79
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -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):