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