diff --git a/waifu2x-caffe-gui/MainDialog.cpp b/waifu2x-caffe-gui/MainDialog.cpp index 1f41d96..e0bdbb2 100644 --- a/waifu2x-caffe-gui/MainDialog.cpp +++ b/waifu2x-caffe-gui/MainDialog.cpp @@ -513,7 +513,7 @@ void DialogEvent::ProcessWaifu2x() const boost::filesystem::path output_path(output_str); const auto outDir = output_path.branch_path(); - if (!boost::filesystem::exists(outDir)) + if (!outDir.empty() && !boost::filesystem::exists(outDir)) { if (!boost::filesystem::create_directories(outDir)) {