diff --git a/firecrest/path.py b/firecrest/path.py index 3535929..0b80379 100644 --- a/firecrest/path.py +++ b/firecrest/path.py @@ -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)