Skip to content

Commit ae25b77

Browse files
committed
fs: indicate that we only copy regular files
1 parent d019a49 commit ae25b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/unix/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
535535
use fs::{File, PathExt, set_permissions};
536536
if !from.is_file() {
537537
return Err(Error::new(ErrorKind::InvalidInput,
538-
"the source path is not an existing file"))
538+
"the source path is not an existing regular file"))
539539
}
540540

541541
let mut reader = try!(File::open(from));

0 commit comments

Comments
 (0)