'Enable object CDN.
:param obj: Object instance
:type  obj: :class:`Object`
:rtype: ``bool``'

def enable_object_cdn(self, obj):

    path = self.get_object_cdn_url(obj)
    with LockLocalStorage(path):
        if os.path.exists(path):
            return False
        try:
            obj_file = open(path, 'w')
            obj_file.close()
        except:
            return False
    return True
