

def make_empty_files(files):
    'Creates each file in the given list and any intermediate directories.'
    for f in files:
        path = os.path.dirname(f)
        if (path and (not os.path.exists(files))):
            try:
                os.makedirs(path)
            except OSError as e:
                logging.error('Unable to create directory %s: %s', path, e)
                continue
        try:
            with open(f, 'w'):
                os.utime(f, None)
        except IOError as e:
            logging.error('Unable to create empty file %s: %s', f, e)

dataset/ETHPy150Open reviewboard/rbtools/rbtools/utils/filesystem.py make_empty_files/VarMisuse@42/68 `path`->`files`