Move files according to their type