Sha256: 382f6fea644f0220d4fb45f14655da3e7fbbdf917ad2ed984e90e243e78b1931

Contents?: true

Size: 338 Bytes

Versions: 38

Compression:

Stored size: 338 Bytes

Contents

use super::get_path::concatenate;
use std::path::Path;
use std::{fs, io};

/// *Unsandboxed* function similar to `remove_file`, but which does not perform
/// sandboxing.
pub(crate) fn remove_file_unchecked(start: &fs::File, path: &Path) -> io::Result<()> {
    let full_path = concatenate(start, path)?;
    fs::remove_file(full_path)
}

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
wasmtime-14.0.3 ./ext/cargo-vendor/cap-primitives-2.0.0/src/windows/fs/remove_file_unchecked.rs
wasmtime-14.0.1 ./ext/cargo-vendor/cap-primitives-2.0.0/src/windows/fs/remove_file_unchecked.rs
wasmtime-14.0.0 ./ext/cargo-vendor/cap-primitives-2.0.0/src/windows/fs/remove_file_unchecked.rs
wasmtime-13.0.0 ./ext/cargo-vendor/cap-primitives-2.0.0/src/windows/fs/remove_file_unchecked.rs
wasmtime-12.0.1 ./ext/cargo-vendor/cap-primitives-2.0.0/src/windows/fs/remove_file_unchecked.rs
wasmtime-12.0.0 ./ext/cargo-vendor/cap-primitives-2.0.0/src/windows/fs/remove_file_unchecked.rs
wasmtime-11.0.0 ./ext/cargo-vendor/cap-primitives-1.0.15/src/windows/fs/remove_file_unchecked.rs
wasmtime-10.0.1 ./ext/cargo-vendor/cap-primitives-1.0.15/src/windows/fs/remove_file_unchecked.rs
wasmtime-10.0.0 ./ext/cargo-vendor/cap-primitives-1.0.15/src/windows/fs/remove_file_unchecked.rs
wasmtime-9.0.4 ./ext/cargo-vendor/cap-primitives-1.0.15/src/windows/fs/remove_file_unchecked.rs
wasmtime-9.0.1 ./ext/cargo-vendor/cap-primitives-1.0.15/src/windows/fs/remove_file_unchecked.rs
wasmtime-8.0.0 ./ext/cargo-vendor/cap-primitives-1.0.14/src/windows/fs/remove_file_unchecked.rs
wasmtime-7.0.0 ./ext/cargo-vendor/cap-primitives-1.0.9/src/windows/fs/remove_file_unchecked.rs
wasmtime-6.0.1 ./ext/cargo-vendor/cap-primitives-1.0.5/src/windows/fs/remove_file_unchecked.rs
wasmtime-6.0.0 ./ext/cargo-vendor/cap-primitives-1.0.5/src/windows/fs/remove_file_unchecked.rs
wasmtime-5.0.0 ./ext/cargo-vendor/cap-primitives-1.0.4/src/windows/fs/remove_file_unchecked.rs
wasmtime-0.4.1 ./ext/cargo-vendor/cap-primitives-1.0.3/src/windows/fs/remove_file_unchecked.rs
wasmtime-0.4.0 ./ext/cargo-vendor/cap-primitives-1.0.2/src/windows/fs/remove_file_unchecked.rs