def _get_file_contents(self, file_path, is_text_file):
        with contextlib.closing(self._conn.get_file(file_path)) as file:
            contents = file.read()
            if is_text_file:
                contents = contents.decode()
            return contents
Obtains the contents of a file from the given path.
dataset/ETHPy150Open s3rvac/retdec-python/retdec/resource.py/Resource._get_file_contents