aboutsummaryrefslogtreecommitdiff
path: root/src/QuickMedia.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r--src/QuickMedia.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index a555ab8..84f921f 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -8304,10 +8304,12 @@ namespace QuickMedia {
std::string output_filepath_s = output_filepath;
char *output_dir = dirname(output_filepath_s.data());
- if(create_directory_recursive(output_dir) != 0) {
- show_notification("QuickMedia", std::string("Failed to download ") + url + " to " + output_filepath + " (failed to create directory)", Urgency::CRITICAL);
- exit_code = 1;
- return;
+ if(strcmp(output_dir, ".") != 0 && strcmp(output_dir, "/") != 0) {
+ if(create_directory_recursive(output_dir) != 0) {
+ show_notification("QuickMedia", std::string("Failed to download ") + url + " to " + output_filepath + " (failed to create directory)", Urgency::CRITICAL);
+ exit_code = 1;
+ return;
+ }
}
idle_active_handler();