def read_file(self, filepath):
        total_files = 0
        filehandle = tempfile.SpooledTemporaryFile(
            max_size=MAX_SPOOLED_SIZE,
            dir=dbbackup_settings.TMP_DIR)
        try:
            while True:
                response = self.run_dropbox_action(self.dropbox.get_file,
                    self.get_numbered_path(filepath, total_files),
                    ignore_404=(total_files > 0))
                if not response:
                    break
                copyfileobj(response, filehandle)
                total_files += 1
        except:
            filehandle.close()
            raise
        return filehandle
Read the specified file and return it's handle.
dataset/ETHPy150Open django-dbbackup/django-dbbackup/dbbackup/storage/dropbox_storage.py/Storage.read_file