aggregation_modules/utils.py
def upload_file(self, filename, data):
        """
        write binary file to config directory
        """
        try:
            with open(os.path.join(self.config_dir, filename), "wb") as file_writer:
                file_writer.write(data)
            logger.debug("write success for file: %s", filename)

        except Exception as err:
            logger.error("write failed for file: %s", filename)
            logger.error("%s: %s", type(err), err)

        write binary file to config directory
        
write binary file to config directory
write binary file to config directory
def upload_file(self, filename, data):
        try:
            with open(os.path.join(self.config_dir, filename), "wb") as file_writer:
                file_writer.write(data)
            logger.debug("write success for file: %s", filename)
        except Exception as err:
            logger.error("write failed for file: %s", filename)
            logger.error("%s: %s", type(err), err)
def upload_file ( self , filename , data ) : try : with open ( os . path . join ( self . config_dir , filename ) , "wb" ) as file_writer : file_writer . write ( data ) logger . debug ( "write success for file: %s" , filename ) except Exception as err : logger . error ( "write failed for file: %s" , filename ) logger . error ( "%s: %s" , type ( err ) , err )
write binary file to config directory
write binary file to config directory
"""
        write binary file to config directory
        """
self
filename
data