doc/empty_file
This commit is contained in:
parent
eb0f862125
commit
2c6bec253c
1 changed files with 5 additions and 1 deletions
|
@ -19,7 +19,11 @@ def create_image(file_path: str, size_bytes: int) -> None:
|
|||
|
||||
|
||||
def empty_file(path: Path) -> None:
|
||||
"""Empty the file at provided path."""
|
||||
"""Empty the file at provided path.
|
||||
|
||||
:param path: target file to empty
|
||||
:type path: Path
|
||||
"""
|
||||
write(path, "")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue