Man, I feel like I'd rather reengineer this as sh2dir, using shell commands like echo, cat, ln, mkdir, touch, and so on...