Skeleton for file persistence. Missing logic to save folders first.