Handle the virtual and real folders altogether.