Added option to filter path from file path