Merge pull request #566 from andreyplus/fixes

Add a warning if the directory does not exist or if it is a file
This commit is contained in:
MihailRis 2025-07-23 12:41:55 +03:00 committed by GitHub
commit 3176abed9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,6 +96,7 @@ int platform::get_process_id() {
void platform::open_folder(const std::filesystem::path& folder) { void platform::open_folder(const std::filesystem::path& folder) {
if (!std::filesystem::is_directory(folder)) { if (!std::filesystem::is_directory(folder)) {
logger.warning() << folder << " is not a directory or does not exist";
return; return;
} }
#ifdef __APPLE__ #ifdef __APPLE__