[−][src]Struct dircpy::DirCopy
Recursively copy a directory from a to b.
Fields
source: PathBuf
The source directory
destination: PathBuf
the destination directory
Implementations
impl DirCopy
[src]
pub fn new(source: &Path, destination: &Path) -> DirCopy
[src]
pub fn overwrite(self, overwrite: bool) -> DirCopy
[src]
Overwrite target files (off by default)
pub fn overwrite_if_newer(self, overwrite_only_newer: bool) -> DirCopy
[src]
Overwrite if the source is newer (off by default)
pub fn overwrite_if_size_differs(
self,
overwrite_if_size_differs: bool
) -> DirCopy
[src]
self,
overwrite_if_size_differs: bool
) -> DirCopy
Overwrite if size between source and dest differs (off by default)
pub fn with_exclude_filter(self, f: &str) -> DirCopy
[src]
Do not copy files that contain this string
pub fn with_include_filter(self, f: &str) -> DirCopy
[src]
Only copy files that contain this string.
pub fn build(&self) -> Result<(), Error>
[src]
Execute the copy operation
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DirCopy
impl Send for DirCopy
impl Sync for DirCopy
impl Unpin for DirCopy
impl UnwindSafe for DirCopy
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,