Skip to content

Commit

Permalink
fs: indicate that we only copy regular files
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Aug 5, 2015
1 parent d019a49 commit ae25b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/fs.rs
Expand Up @@ -535,7 +535,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
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));
Expand Down

0 comments on commit ae25b77

Please sign in to comment.