Skip to content

Commit

Permalink
Renamed Resource.{is_folder() -> is_dir()}
Browse files Browse the repository at this point in the history
  • Loading branch information
lieryan committed Jan 3, 2024
1 parent e2c3bd1 commit c74ac2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rope/base/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ def remove(self):
"""Remove resource from the project"""
self._perform_change(change.RemoveResource(self), "Removing <%s>" % self.path)

def is_dir(self):
"""Alias for `is_folder()`"""

def is_folder(self):
"""Return true if the resource is a folder"""
"""Return True if the resource is a Folder"""

def create(self):
"""Create this resource"""
Expand Down

0 comments on commit c74ac2f

Please sign in to comment.