1 2 3 4 5 6 7 8
use std::{io, path::Path}; use super::opfs::remove; pub async fn remove_file(path: impl AsRef<Path>) -> io::Result<()> { let (mut _guard, _) = super::file::lock_file(&path, None).await; remove(path, false).await }