mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue