| 660 | } |
| 661 | if (errno == EEXIST) { |
| 662 | struct stat st; |
| 663 | if (stat(s, &st) || !S_ISDIR(st.st_mode)) { |
| 664 | // Note we propagate the original errno, not the stat() errno |
| 665 | return IOErrorFromErrno(EEXIST, "Cannot create directory '", dir_path.ToString(), |
no outgoing calls
no test coverage detected