Skip to content

Commit

Permalink
Merge branch 'main' of github.com:eth-cscs/pyfirecrest into feat/comp…
Browse files Browse the repository at this point in the history
…ress_deref
  • Loading branch information
ekouts committed Jul 11, 2024
2 parents f9b78b9 + cfa46c5 commit 14c57b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions firecrest/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,11 @@ def is_socket(self) -> bool:
return False
return stat.S_ISSOCK(st_mode)

def iterdir(self, hidden=True) -> Iterator[Self]:
def iterdir(self, hidden=True, recursive=False) -> Iterator[Self]:
"""Iterate over the directory entries."""
with self.convert_header_exceptions():
results = self._client.list_files(
self._machine, self.path, show_hidden=hidden
self._machine, self.path, show_hidden=hidden, recursive=recursive
)
for entry in results:
yield self._new_path(
Expand Down Expand Up @@ -516,7 +516,7 @@ def mkdir(
try:
with self.convert_header_exceptions(
{
"X-A-Directory": FileExistsError # Note see: https://github.com/eth-cscs/firecrest/issues/172
"X-Invalid-Path": FileExistsError # Note see: https://github.com/eth-cscs/firecrest/issues/172
}
):
self._client.mkdir(self._machine, self.path, p=parents)
Expand Down

0 comments on commit 14c57b7

Please sign in to comment.