'Returns the size of the data on disk'

def set_size(self):

    try:
        if (not self.file_size):
            self.file_size = os.path.getsize(self.file_name)
    except OSError:
        self.file_size = 0
