Code review comment for lp:~michihenning/unity-scopes-api/scope-cache-dir

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

> > Who's responsible for creating this directory? I suppose the leaf could be
> > created by the scope itself (does it have permissions to do that?), but the
> > parents have to be created by something unconfined, so who's doing it? The
> > click hook?
>
> Yes, the directory needs to be created as part of the installation.
>
> Still not solved afaict, without it, this branch is useless.

The leaf-net, leaf-fs, or aggregator directories can all be unconditionally created by the scope click hook if they don't already exist. The scope click hook could also consider a new 'Type' field added to ScopeConfig (see below for discussion), but I don't think it needs to (just create all 3 and be done with it).

« Back to merge proposal