def ensure_dir(self):
        dir = os.path.dirname(self.dst_filename)
        try:
            os.makedirs(dir)
        except OSError:
            pass
Creates the directory if it does not exist yet.
dataset/ETHPy150Open lektor/lektor/lektor/builder.py/Artifact.ensure_dir