Add aliases is_directory, is_folder -> is_dir.
This commit is contained in:
parent
446626f1ce
commit
cd1fce3211
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue