frontmatter_gen::utils::fsFunction copy_file
Source pub async fn copy_file(src: &Path, dst: &Path) -> Result<()>
Expand description
Copies a file from source to destination
§Arguments
src
- Source path
dst
- Destination path
§Returns
Returns Ok(()) on success, or an error if copy fails
§Security
Validates both paths and ensures proper permissions