Distribute files into folders