Folder save logic