def METHOD_NAME(self,filename):
    try :
        filesize = os.path.getsize(filename)
    except:  #if we not have correct right or other problem...
        self._errorhandle.write("Cannot get filesize for "+filename+"!\n")
        return
    if (filesize)>self._size: #if file bigger than media size
        self._errorhandle.write("Discarding "+filename+": file too big for media !")
        print "Discarding "+filename+": file too big for media !"
        return
    for number, size in self._volumes.items():
        if (size+filesize)<self._size:
            self._volumes[number] += filesize
            self._filehandle[number].write(str(filesize)+'   '+filename+"\n")
            #for debug only
            #print ("Left on media #" +str(number)+": "+str( self._volumes[number]/1024/1024))+" MB"
            return
    hd = open(self._dest+'list'+str(number+2),'w')
    hd.write(str(filesize)+'   '+filename+"\n")
    self._volumes[number+1] = filesize #add a volume with filesize
    self._filehandle[number+1]= hd #append filehandle