Sha256: b9f2d93fc8c646103f0173fd63ce8ed11a7a7ebf78ef2443081effce1c4b4db7
Contents?: true
Size: 491 Bytes
Versions: 36
Compression:
Stored size: 491 Bytes
Contents
use crate::fs::copy_impl; use std::path::Path; use std::{fs, io}; /// Copies the contents of one file to another. #[inline] pub fn copy( from_start: &fs::File, from_path: &Path, to_start: &fs::File, to_path: &Path, ) -> io::Result<u64> { // In theory we could do extra sanity checks here, but `copy_impl` // implementations use other sandboxed routines to open the files, // so it'd be mostly redundant. copy_impl(from_start, from_path, to_start, to_path) }
Version data entries
36 entries across 36 versions & 1 rubygems