Skip to content

Commit 73bcb7a

Browse files
committed
Ensure cache directory exists
1 parent 3c2450d commit 73bcb7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tasks/task_content.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,12 @@ static void content_information_ctx_init(
718718
{
719719
const char *path_dir_cache = settings->paths.directory_cache;
720720
if (!string_is_empty(path_dir_cache))
721+
{
721722
content_ctx->directory_cache = strdup(path_dir_cache);
723+
724+
if (!path_is_directory(path_dir_cache))
725+
path_mkdir(path_dir_cache);
726+
}
722727
}
723728

724729
if (!string_is_empty(sysinfo->valid_extensions))

0 commit comments

Comments
 (0)