cap-primitives 0.4.0

Capability-oriented primitives
Documentation
1
2
3
4
5
6
7
use posish::fs::{unlinkat, AtFlags};
use std::{fs, io, path::Path};

/// *Unsandboxed* function similar to `unlink`, but which does not perform sandboxing.
pub(crate) fn unlink_unchecked(start: &fs::File, path: &Path) -> io::Result<()> {
    unlinkat(start, path, AtFlags::empty())
}