Let is_directory be canonical function, but keep the aliases.
This commit is contained in:
parent
87fbede7d5
commit
05586e7e79
1 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue