def get_available_name(self, name):
        """
        In order to prevent file overwriting one another this will generate
        a new filename with the format `YYMMDD.uniquehash.filename.extension`
        """
        # Set the format of our filename
        filename_format = '{path}/{date}.{filename}'

        # If the storage engine is S3, call _clean_name() to clean the name
        try:
            clean_name = self._clean_name(name)
        except __HOLE__:
            clean_name = name

        # Generate the YYMMDD formatted date
        date = datetime.now().strftime('%y%m%d')

        # rsplit the filename on '/' so we have a 2 value list of
        # the path and filename
        splitname = clean_name.rsplit('/', 1)

        # Compile all the relevant strings to generate the full path/filename
        final_name = filename_format.format(
            path=splitname[0],
            date=date,
            filename=uniqify_filename(splitname[1])
        )
        return final_name
dataset/ETHPy150Open ofa/connect/open_connect/connect_core/utils/storages.py/AttachmentStorage.get_available_name