separates folders from files