Skip to content

Commit

Permalink
Fix mkdir() and lchmod()
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdelorenzo committed Oct 12, 2023
1 parent 93ebe10 commit 8afe113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiopath/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def iterdir(self: Self) -> AsyncIterable[Self]:

@docs_from(Path)
async def lchmod(self, mode: FileMode):
return await to_thread(super().lchmod, mode)
return await to_thread(self._path.lchmod, mode)

@docs_from(Path)
async def lstat(self) -> stat_result:
Expand All @@ -171,7 +171,7 @@ async def match(self, path_pattern: str, *, case_sensitive: bool | None = None)

@docs_from(Path)
async def mkdir(self, mode: int = 0o777, parents: bool = False, exist_ok: bool = False):
return await to_thread(super().mkdir, mode, parents, exist_ok)
return await to_thread(self._path.mkdir, mode, parents, exist_ok)

@docs_from(Path)
def open(
Expand Down

0 comments on commit 8afe113

Please sign in to comment.