| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| Makefile.am | ||
| Makefile.in | ||
| cow-dir.cc | ||
| cow-ops.cc | ||
| cow-path.cc | ||
| cow-std-dir.cc | ||
| cow-std-ops.cc | ||
| cow-std-path.cc | ||
| dir-common.h | ||
| dir.cc | ||
| ops-common.h | ||
| ops.cc | ||
| path.cc | ||
| std-dir.cc | ||
| std-ops.cc | ||
| std-path.cc |
The create_dir helper was calling the throwing form of filesystem::is_directory instead of passing the error_code argument. Since std::filesystem::create_directory(const path&, error_code&) is noexcept, it would call std::terminate if an error occurred in is_directory. Passing the error_code also takes care of clearing it in the case where is_directory returns true. src/filesystem/ops.cc (create_dir): Pass error_code to is_directory. src/filesystem/std-ops.cc (create_dir): Likewise. From-SVN: r258375
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| Makefile.am | Loading commit data... | |
| Makefile.in | Loading commit data... | |
| cow-dir.cc | Loading commit data... | |
| cow-ops.cc | Loading commit data... | |
| cow-path.cc | Loading commit data... | |
| cow-std-dir.cc | Loading commit data... | |
| cow-std-ops.cc | Loading commit data... | |
| cow-std-path.cc | Loading commit data... | |
| dir-common.h | Loading commit data... | |
| dir.cc | Loading commit data... | |
| ops-common.h | Loading commit data... | |
| ops.cc | Loading commit data... | |
| path.cc | Loading commit data... | |
| std-dir.cc | Loading commit data... | |
| std-ops.cc | Loading commit data... | |
| std-path.cc | Loading commit data... |