We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81b6287 commit ad7c6f9Copy full SHA for ad7c6f9
utils/types.cpp
@@ -159,6 +159,9 @@ Directory :: Directory (const std::string& path) {
159
160
if (fs::directory_entry(path).exists() && !fs::directory_entry(path).is_directory()) {
161
paths_h.emplace_back(get_file_info(fs::directory_entry(path)));
162
+ } else if(!fs::directory_entry(path).exists()) {
163
+ std::cout << red("OS Error (2): Path does not exist.") << std::endl;
164
+ std::exit(1);
165
} else {
166
for (const fs::directory_entry& i : get_files(path)) {
167
paths_h.emplace_back(get_file_info(i));
0 commit comments