dav_tools.files =============== .. py:module:: dav_tools.files .. autoapi-nested-parse:: File operations. Functions --------- .. autoapisummary:: dav_tools.files.copy_file dav_tools.files.delete_file Module Contents --------------- .. py:function:: copy_file(src_path, dest_path, *, symlink = False) Copy a file from the source path to the destination path, with an option to create a symlink. :param src_path: the path of the source file to be copied :param dest_path: the path where the file should be copied :param symlink: if `True`, a symlink is created at the destination instead of copying the file (default is `False`) :raises Exception: if the source path is not a valid file :returns: None .. py:function:: delete_file(path) Delete a file at the given path. :param path: the path of the file to be deleted :raises Exception: if the path is not a valid file :returns: whether the file was deleted or not