duck.utils.fileΒΆ
File Management Utilities Module
Provides utility functions for file operations such as reading, writing, renaming, moving, and deleting files.
Module ContentsΒΆ
FunctionsΒΆ
Deletes a file. |
|
Moves a file from the source path to the destination path. |
|
Reads the contents of a file. |
|
Writes data to a file. |
APIΒΆ
- duck.utils.file.delete_file(file_path: str) None[source]ΒΆ
Deletes a file.
- Parameters:
file_path β The file path to delete.
- duck.utils.file.move_file(source: str, destination: str) None[source]ΒΆ
Moves a file from the source path to the destination path.
- Parameters:
source β The source file path.
destination β The destination file path.