Struct self_update::Move [] [src]

pub struct Move<'a> { /* fields omitted */ }

Moves a file from the given path to the specified destination.

source and dest must be on the same filesystem. If replace_using_temp is provided, the destination file will be replaced using the given temp path as a backup in case of io errors.

  • Errors:
    • Io - copying / renaming

Methods

impl<'a> Move<'a>
[src]

[src]

Specify source file

[src]

If specified and the destination file already exists, the destination file will be "safely" replaced using a temp path. The temp dir should must be explicitly provided since replace operations require files to live on the same filesystem.

[src]

Move source file to specified destination

Trait Implementations

impl<'a> Debug for Move<'a>
[src]

[src]

Formats the value using the given formatter.