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.