delete_extra_files

Function delete_extra_files 

Source
pub async fn delete_extra_files(
    source: &PathBuf,
    target: &PathBuf,
    dry_run: bool,
    exclude: &[String],
    delete_exclude: &[String],
) -> Result<(Vec<PathBuf>, Vec<PathBuf>, Vec<(PathBuf, String)>)>
Expand description

删除文件(安全删除,记录错误)

§参数

  • path: 要删除的文件路径

§注意

不会 panic,错误会返回或记录日志。