diff options
-rw-r--r-- | linux.c | 3 | ||||
-rw-r--r-- | macos.c | 2 |
2 files changed, 5 insertions, 0 deletions
@@ -3,6 +3,7 @@ #include "dive.h" #include "display.h" #include "membuffer.h" +#include "qthelperfromc.h" #include <string.h> #include <sys/types.h> #include <dirent.h> @@ -63,6 +64,8 @@ static const char *system_default_path_append(const char *append) memset(buffer, 0, len); strcat(buffer, home); strcat(buffer, path); + // make sure this path exists + subsurface_mkdir(buffer); if (append) { strcat(buffer, "/"); strcat(buffer, append); @@ -56,6 +56,8 @@ static const char *system_default_path_append(const char *append) memset(buffer, 0, len); strcat(buffer, home); strcat(buffer, path); + // make sure this path exists + subsurface_mkdir(buffer); if (append) { strcat(buffer, "/"); strcat(buffer, append); |