From f1c2dde13bf1ca59a466cfed2f2d2076c06b235f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 5 Jun 2014 12:06:47 +0100 Subject: extend file table with mkdir all and make fs backing store use it. enable fs backing store for RISC OS. --- content/fs_backing_store.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'content/fs_backing_store.c') diff --git a/content/fs_backing_store.c b/content/fs_backing_store.c index 7ad649248..d29fcaac7 100644 --- a/content/fs_backing_store.c +++ b/content/fs_backing_store.c @@ -627,7 +627,7 @@ store_open(struct store_state *state, /** @todo mkdir only on write flag */ /* ensure path to file is usable */ - ret = filepath_mkdir_all(fname); + ret = netsurf_mkdir_all(fname); if (ret != NSERROR_OK) { LOG(("file path \"%s\" could not be created", fname)); free(fname); @@ -835,7 +835,9 @@ write_control(struct store_state *state) return ret; } - ret = filepath_mkdir_all(fname); + LOG(("writing control file \"%s\"", fname)); + + ret = netsurf_mkdir_all(fname); if (ret != NSERROR_OK) { free(fname); return ret; @@ -881,6 +883,8 @@ read_control(struct store_state *state) return ret; } + LOG(("opening control file \"%s\"", fname)); + fcontrol = fopen(fname, "rb"); free(fname); -- cgit v1.2.3