//! Portable boundaries for path identity and owner-only scratch files.
use std::io;
pub use artifactize_foundation::platform::paths::{is_within, paths_equal};
/// An unnamed owner-only scratch file in the system temporary directory, removed when
/// closed.
pub(crate) fn private_anonymous_file() -> io::Result<std::fs::File> {
let file = tempfile::tempfile()?;
super::restrict_file(&file)?;
Ok(file)
}