Skip to content

Commit

Permalink
Merge pull request #185 from gerlero/files
Browse files Browse the repository at this point in the history
Fix docstring
  • Loading branch information
gerlero authored Sep 20, 2024
2 parents 594d343 + 6053cd4 commit c7f9fa1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions foamlib/_files/_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,9 @@ def create(self, *, exist_ok: bool = False, parents: bool = False) -> Self:
"""
Create the file.
Parameters
----------
exist_ok : bool, optional
If False (the default), raise a FileExistsError if the file already exists.
If True, do nothing if the file already exists.
parents : bool, optional
If True, also create parent directories as needed.
:param exist_ok: If False, raise a FileExistsError if the file already exists.
:param parents: If True, also create parent directories as needed.
"""
if self.path.exists():
if not exist_ok:
Expand Down

0 comments on commit c7f9fa1

Please sign in to comment.