Sha256: d2021f2123ccf7a72012f0e8c92d679a62652d59048bfc0c91042073e14f9b59
Contents?: true
Size: 368 Bytes
Versions: 39
Compression:
Stored size: 368 Bytes
Contents
use rustix::fs::renameat; use std::path::Path; use std::{fs, io}; /// *Unsandboxed* function similar to `rename`, but which does not perform /// sandboxing. pub(crate) fn rename_unchecked( old_start: &fs::File, old_path: &Path, new_start: &fs::File, new_path: &Path, ) -> io::Result<()> { Ok(renameat(old_start, old_path, new_start, new_path)?) }
Version data entries
39 entries across 39 versions & 1 rubygems