blob: d6876c63dbbacd6ed9b33dad8724382a040f03d7 [file] [log] [blame]
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import sys
# Ensure file in each directory with _pb2 files.
# See Makefile nearby.
for dirpath, dirnames, filenames in os.walk(sys.argv[1]):
if not dirnames and not filenames:
if '' in filenames:
with open(os.path.join(dirpath, ''), 'w'):