On Tue, Jul 21, 2015 at 6:18 PM Niels Charlier <ni...@scitus.be> wrote:

> Hi Kevin and Gabriel,
>
> I have a few questions regarding the jdbc resource store and the
> resource store API in general that I'd like to hear your opinion on.
> Including the mailing list because others might have thoughts on this.
>
> 1) The ResourceStore does not appear to provide anything for creating
> directories. At the moment GeoServerResourceLoader.getOrCreateDirectory
> is used for that. How can we change all modules to use the generic
> Resource Store rather than the file based one directly without such a
> method in the API?
>

Directories do not exist until needed, just like resources are not created
until needed. We worked hard to simplify all the common checks including
that one :) So for a file system resource store if you create a resource
using resource.out() the file (and the directory it belongs to) will be
created as needed.

Do you have an example that needs a directory that we can port together? I
tried to include before and after examples
<https://github.com/geoserver/geoserver/wiki/ResourceStore-API-Examples> in
the proposal.
------------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to