Silence warning in wastePointFromDirectory method