Skip to main content

is_cross_device_error

Function is_cross_device_error 

Source
pub fn is_cross_device_error(e: &Error) -> bool
Expand description

Check if an I/O error is a cross-device link error (EXDEV on Unix, ERROR_NOT_SAME_DEVICE on Windows). Used to fall back from rename to copy+delete when source and destination are on different filesystems.