libs.docks.hyperdock-fileio.hyperdock_fileio.operations#

Functions#

copy_file(→ str)

Copy a file or directory from source to destination.

move_file(→ str)

Move a file or directory from source to destination.

remove_file(→ str)

Remove a file or directory.

Module Contents#

libs.docks.hyperdock-fileio.hyperdock_fileio.operations.copy_file(src_path: str, dest_path: str) str#

Copy a file or directory from source to destination. If directory is provided, it will be copied recursively. If destination exists and is a file, it will be overwritten. If destination exists and is a directory, the source will be copied inside and may overwrite files. Otherwise, error will be raised. :param src_path: str, source file path :param dest_path: str, destination file path :return: a success message

libs.docks.hyperdock-fileio.hyperdock_fileio.operations.move_file(src_path: str, dest_path: str) str#

Move a file or directory from source to destination. :param src_path: str, source file path :param dest_path: str, destination file path :return: a success message

libs.docks.hyperdock-fileio.hyperdock_fileio.operations.remove_file(file_path: str) str#

Remove a file or directory. :param file_path: str, file path :return: a success message