Sha256: 46873a4cf434cb6565f5d86492ef6a173b128d187ea17daebb0415b37911c1cb
Contents?: true
Size: 773 Bytes
Versions: 39
Compression:
Stored size: 773 Bytes
Contents
use super::get_path::concatenate; use std::path::Path; use std::{fs, io}; /// *Unsandboxed* function similar to `symlink_file`, but which does not /// perform sandboxing. pub(crate) fn symlink_file_unchecked( old_path: &Path, new_start: &fs::File, new_path: &Path, ) -> io::Result<()> { let new_full_path = concatenate(new_start, new_path)?; std::os::windows::fs::symlink_file(old_path, new_full_path) } /// *Unsandboxed* function similar to `symlink_dir`, but which does not perform /// sandboxing. pub(crate) fn symlink_dir_unchecked( old_path: &Path, new_start: &fs::File, new_path: &Path, ) -> io::Result<()> { let new_full_path = concatenate(new_start, new_path)?; std::os::windows::fs::symlink_dir(old_path, new_full_path) }
Version data entries
39 entries across 39 versions & 1 rubygems