結果 : check if file matches pattern python