Struct fs_extra::dir::CopyOptions [] [src]

pub struct CopyOptions {
    pub overwrite: bool,
    pub skip_exist: bool,
    pub buffer_size: usize,
    pub copy_inside: bool,
    pub depth: u64,
}

Options and flags which can be used to configure how a file will be copied or moved.

Fields

Sets the option true for overwrite existing files.

Sets the option true for skipe existing files.

Sets buffer size for copy/move work only with receipt information about process work.

Sets the option true for recursively copying a directory with a new name or place it inside the destination.(same behaviors like cp -r in Unix)

Sets levels reading. Set 0 for read all directory folder. By default 0.

Warrning: Work only for copy operations!

Methods

impl CopyOptions
[src]

[src]

Initialize struct CopyOptions with default value.

Be careful when using this code, it's not being tested!
overwrite: false

skip_exist: false

buffer_size: 64000 //64kb

copy_inside: false

Trait Implementations

impl Clone for CopyOptions
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more