def METHOD_NAME(self, cont, obj, local_file=None, return_bin=False):
    """
    Retrieve a file from Swift
    """
    try:
        if local_file is None and return_bin is False:
            return False
        headers, body = self.conn.METHOD_NAME(cont, obj, resp_chunk_size=65536)
        if return_bin is True:
            fp = sys.stdout
        else:
            dirpath = dirname(local_file)
            if dirpath and not isdir(dirpath):
                mkdirs(dirpath)
            # pylint: disable=resource-leakage
            fp = salt.utils.files.fopen(local_file, "wb")
            # pylint: enable=resource-leakage
        read_length = 0
        for chunk in body:
            read_length += len(chunk)
            fp.write(chunk)
        fp.close()
        return True
    # ClientException
    # file/dir exceptions
    except Exception as exc:  # pylint: disable=broad-except
        log.error("There was an error::")
        if hasattr(exc, "code") and hasattr(exc, "msg"):
            log.error("    Code: %s: %s", exc.code, exc.msg)
        log.error("    Content: \n%s", getattr(exc, "read", lambda: str(exc))())
        return False