@classmethod
    def write(cls, path, content):
        dirname = os.path.dirname(path)
        try:
            os.makedirs(dirname)
        except __HOLE__ as e:
            if e.errno == errno.EEXIST and os.path.isdir(dirname):
                pass
            else:
                raise
        fp = cls.open(path, mode='w')
        fp.write(content)
        fp.close()
        return fp
dataset/ETHPy150Open grow/grow/grow/pods/storage/file_storage.py/FileStorage.write