aws_info_helper/s3.py
def clear_last_file_for_bucket_and_prefix(self, bucket, prefix=''):
        """Clear any 'last file' info for bucket/prefix combo"""
        if (bucket, prefix) in self._cache['_last_file']:
            del(self._cache['_last_file'][(bucket, prefix)])

        if self._collection_last_file is not None:
            found = self._collection_last_file.find(
                'profile:{}, bucket:{}, prefix:{}'.format(self._profile, bucket, prefix),
            )
            if found:
                self._collection_last_file.delete(found[0]['_id'])
Clear any 'last file' info for bucket/prefix combo
Clear any 'last file' info for bucket/prefix combo
Clear any ' last file ' info for bucket / prefix combo
def clear_last_file_for_bucket_and_prefix(self, bucket, prefix=''):
        if (bucket, prefix) in self._cache['_last_file']:
            del(self._cache['_last_file'][(bucket, prefix)])
        if self._collection_last_file is not None:
            found = self._collection_last_file.find(
                'profile:{}, bucket:{}, prefix:{}'.format(self._profile, bucket, prefix),
            )
            if found:
                self._collection_last_file.delete(found[0]['_id'])
def clear_last_file_for_bucket_and_prefix ( self , bucket , prefix = '' ) : if ( bucket , prefix ) in self . _cache [ '_last_file' ] : del ( self . _cache [ '_last_file' ] [ ( bucket , prefix ) ] ) if self . _collection_last_file is not None : found = self . _collection_last_file . find ( 'profile:{}, bucket:{}, prefix:{}' . format ( self . _profile , bucket , prefix ) , ) if found : self . _collection_last_file . delete ( found [ 0 ] [ '_id' ] )
Clear any 'last file' info for bucket/prefix combo
Clear any ' last file ' info for bucket / prefix combo
"""Clear any 'last file' info for bucket/prefix combo"""
self
bucket
prefix