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:
commit
3176abed9e
@ -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__
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user