pub fn temp_file(file_name: &str, file_content: &str) -> Self {
        let temp_dir = tmp::Builder::new()
            .prefix(TEMP_PREFIX)
            .suffix(TEMP_SUFFIX)
            .tempdir()
            .unwrap()
            .into_path();
        let file_path = temp_dir.join(file_name);
        write_file(&file_path, file_content).expect("write file");
        Self::new(&temp_dir)
    }
/// Use a temporary directory of a temporary file as a working directory
Use a temporary directory of a temporary file as a working directory
Use a temporary directory of a temporary file as a working directory
pub fn temp_file(file_name: &str, file_content: &str) -> Self {
        let temp_dir = tmp::Builder::new()
            .prefix(TEMP_PREFIX)
            .suffix(TEMP_SUFFIX)
            .tempdir()
            .unwrap()
            .into_path();
        let file_path = temp_dir.join(file_name);
        write_file(&file_path, file_content).expect("write file");
        Self::new(&temp_dir)
    }
pub fn temp_file ( file_name : & str , file_content : & str ) -> Self { let temp_dir = tmp :: Builder :: new ( ) . prefix ( TEMP_PREFIX ) . suffix ( TEMP_SUFFIX ) . tempdir ( ) . unwrap ( ) . into_path ( ) ; let file_path = temp_dir . join ( file_name ) ; write_file ( & file_path , file_content ) . expect ( " " ) ; Self :: new ( & temp_dir ) }
Use a temporary directory of a temporary file as a working directory
Use a temporary directory of a temporary file as a working directory
file_name
&str
file_content
&str
file_name
&str
file_content
&str