Skip to content

Commit

Permalink
fix(python): add follow_symlinks for py 3.11.4 (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
justindujardin committed Jun 19, 2023
1 parent 78a3730 commit 49a53b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pathy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ def __repr__(self) -> str:
def inode(self, *args: Any, **kwargs: Dict[str, Any]) -> None:
return None

def is_dir(self) -> bool:
def is_dir(self, follow_symlinks: bool = True) -> bool:
return self._is_dir

def is_file(self) -> bool:
def is_file(self, follow_symlinks: bool = True) -> bool:
return not self._is_dir

def is_symlink(self) -> bool:
Expand Down

0 comments on commit 49a53b5

Please sign in to comment.