OTEE57H2YMEBB2JRHYYAIW4GNXQPV4XEWC4TCI3RXXVU7QTU7TXQC
#[cfg(unix)]
pub fn open_secret_file(path: &Path) -> Result<std::fs::File, std::io::Error> {
use std::fs::OpenOptions;
use std::os::unix::fs::OpenOptionsExt;
OpenOptions::new()
.write(true)
.create(true)
.mode(0o600)
.open(path)
}
#[cfg(not(unix))]
pub fn open_secret_file(path: &Path) -> Result<std::fs::File, std::io::Error> {
std::fs::File::create(path)
}