Skip to main content

make_private_dirs

Function make_private_dirs 

Source
pub fn make_private_dirs()
Expand description

Makes Sioul’s own folders (configuration, data, state, cache) yours alone, as they hold mail, keys, drafts and caches: made with mode 0700 on Unix, and narrowed to it when they exist already. Their parents are made as usual and never changed, and a folder that is a link is left as it is. Nothing to do elsewhere: a Windows profile’s folders are the user’s own. Called at start; what cannot be done is left, said by the first write that fails.