1 @node Configuration directory
2 @section Configuration directory
4 Optionally you can convert configuration file to the directory layout
5 with @ref{nncp-cfgdir} command. And vice versa too, of course loosing
6 the comment lines. Directory layout can looks like that:
50 │ │ │ │ └── onlinedeadline
55 │ │ │ └── onlinedeadline
95 Your @option{-cfg} and @env{$NNCPCFG} could point to that directory,
96 instead of @file{.hjson} file. It will be transparently converted to
97 internal JSON representation. However it can not be encrypted with the
100 That layout should be much more machine friendly and scriptable. Each
101 string parameters is stored as a single line plain text file. String
102 arrays are newline-separated plain text files. Dictionaries are
103 transformed to the subdirectories. Its structure should be
104 self-describing. True booleans are stored as an empty flag-file
105 existence (their absence equals to false). All names starting with "."
106 are skipped. All files ending with @file{prv} are created with 600
107 permissions, instead of the default 666.