Add aliases is_directory, is_folder -> is_dir.

This commit is contained in:
voussoir 2021-09-23 22:36:14 -07:00
parent 446626f1ce
commit cd1fce3211
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

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