Correct openoptions

This commit is contained in:
Love 2025-01-07 15:54:19 +01:00
parent 0bd3c9004f
commit 5aaa10538b

View File

@ -62,12 +62,11 @@ impl Cache {
.context("Failed to get config home")? .context("Failed to get config home")?
.get_config_path()?; .get_config_path()?;
fs::create_dir_all(&config_path)?; fs::create_dir_all(&config_path)?;
eprintln!("Config dir: {}", &config_path.display());
config_path.push(FILE_NAME); config_path.push(FILE_NAME);
eprintln!("File to write: {}", &config_path.display());
let file = fs::File::options() let file = fs::File::options()
.write(true)
.create(true) .create(true)
.truncate(true) .truncate(true)
.open(&config_path)?; .open(&config_path)?;