961 folder creation

fixes #961
Lint/EndAlignment: `end` at 118, 4 is not aligned with `if` at 114, 15