allow specifying wholepath while filtering on name
use path instead of wholename (portability)