]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Include cache dir in local counterpart of URIs
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 4 Oct 2023 20:37:33 +0000 (14:37 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 4 Oct 2023 20:41:46 +0000 (14:41 -0600)
commitecb8156fbd10ab8f0ce287ab6eb6cbb271204355
tree3bc033535514bec6ca21857cb4a3bc28f988a339
parent9b667a08aa51c5fa5152406bc4a996805d5af200
Include cache dir in local counterpart of URIs

Before:

- URI: https://a.b.c/d/e.xml
- Local path: https/a.b.c/d/e.xml

Now:

- URI: https://a.b.c/d/e.xml
- Local path: /path/to/cache/https/a.b.c/d/e.xml

Is a bit more memory-gluttonous, but prints a more helpful string,
and simplifies user code by taking care of the task up front.
src/cache/local_cache.c
src/cache/tmp.c
src/data_structure/path_builder.c
src/data_structure/path_builder.h
src/types/uri.c
test/Makefile.am
test/cache/local_cache_test.c
test/types/uri_test.c