atomic_write_file

Function atomic_write_file 

Source
pub async fn atomic_write_file(file_path: &Path, content: &str) -> Result<()>
Expand description

原子写入文件内容(先写入临时文件,然后重命名)