docker-context/scripts/otn-downloader/otn-downloader.py
def _save():
        """
        Save the file with progress bar

        :return:
        """
        _file = dest_path + '/' + file_name

        print('save \'{0}\' with size: {1} KB'.format(_file, (total_length/1024)))
        with open(_file, 'wb') as _stream:
            for chunk in progress.bar(response.iter_content(chunk_size=1024), expected_size=(total_length/1024) + 1):
                if chunk:
                    _stream.write(chunk)
                    _stream.flush()

        Save the file with progress bar

        :return:
        
Save the file with progress bar
Save the file with progress bar
def _save():
        _file = dest_path + '/' + file_name
        print('save \'{0}\' with size: {1} KB'.format(_file, (total_length/1024)))
        with open(_file, 'wb') as _stream:
            for chunk in progress.bar(response.iter_content(chunk_size=1024), expected_size=(total_length/1024) + 1):
                if chunk:
                    _stream.write(chunk)
                    _stream.flush()
def _save ( ) : _file = dest_path + '/' + file_name print ( 'save \'{0}\' with size: {1} KB' . format ( _file , ( total_length / 1024 ) ) ) with open ( _file , 'wb' ) as _stream : for chunk in progress . bar ( response . iter_content ( chunk_size = 1024 ) , expected_size = ( total_length / 1024 ) + 1 ) : if chunk : _stream . write ( chunk ) _stream . flush ( )
Save the file with progress bar
Save the file with progress bar
"""
        Save the file with progress bar

        :return:
        """
None