filtered result
empty pathnames not modified