diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs index 0c99a30f107d0..0f1d9a6fbb3eb 100644 --- a/src/libstd/sys/unix/fs.rs +++ b/src/libstd/sys/unix/fs.rs @@ -535,7 +535,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result { use fs::{File, PathExt, set_permissions}; if !from.is_file() { return Err(Error::new(ErrorKind::InvalidInput, - "the source path is not an existing file")) + "the source path is not an existing regular file")) } let mut reader = try!(File::open(from));