There's not really such a thing as a "folder" in Consul K/V. You
path can have a value. The only thing that makes them folder-like is
On Sun, Aug 21, 2016 at 6:02 AM, David Adams <
dave...@gmail.com> wrote:
> I believe "folders" are implicitly indicated with a trailing slash
> character. At least, that's how the UI interprets such keys. Creating a
> "folder" in the UI creates a null-value key at that location.
>
> However, it's really important to note that the paths "config/secrets" and
> "config/secrets/" are separate items in the KV store. It's also important to
> note that you don't need to pre-create the "folders". You can just write
> something to x/y/z/p/q. I don't recall off the top of my head how Consul's
> API will handle the intermediate keys in your example, though.
>
> On Sat, Aug 20, 2016 at 10:44 PM, Amit Kumar <
alla...@gmail.com> wrote:
>>
>> Does Consul differentiate between a normal KV vs a folder ? i.e. When I
>> fetch "keys" using consul under a prefix, it just returns array of strings.
>> Could it return array of objects where each object in the array indicates
>> the key name and its type (folder or leaf) ?
>>
>> --
>> This mailing list is governed under the HashiCorp Community Guidelines -
>>
https://www.hashicorp.com/community-guidelines.html. Behavior in violation
>> of those guidelines may result in your removal from this mailing list.
>>
>> GitHub Issues:
https://github.com/hashicorp/consul/issues
>> IRC: #consul on Freenode
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Consul" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
>
https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues:
https://github.com/hashicorp/consul/issues
> IRC: #consul on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Consul" group.
> To unsubscribe from this group and stop receiving emails from it, send an