Stable6 fix encryption

Should fix rename of encryption keys if sub-subfolder doesn't exists.

see #6411 

Maybe it also fix #8936 
```$view->mkdir``` doesn't know the 2th and 3th parameter and can't create directories recursively.