Function copy
Source pub fn copy(src_file: &str, dst_file: &str) -> Result<()>
Expand description
FileCopy: 拷贝文件
§参数:
src_file
: 源文件的绝对路径
dst_file
: 目标文件的绝对路径
§Example
use light_tool::file;
file::copy("/opt/light-tool/tt.txt", "/opt/light-tool/tt/1/tt.txt").unwrap()