

def setup(self):
    self.dir = tempfile.mkdtemp()
    for (fns, mode) in (group for group in self.args):
        for fn in fns:
            fn = pjoin(self.dir, fn)
            if (not isdir(dirname(fn))):
                os.makedirs(dirname(fn))
            with open(fn, 'w'):
                pass
            os.chmod(fn, mode)
            self.files.append(fn)

dataset/ETHPy150Open gvalkov/tailon/tests/test_config.py TemporaryFiles.setup/original