Data dir now has trailing/
ToStuct and Save
Moved ensureDirs to right file