def print_file_details_in_line(self, fname, col_headers):
        """
        makes a nice display of filename for printing based on columns passed
        print('{:<30}'.format(f["name"]), '{:,}'.format(f["size"]))
        """
        line = ''
        try:
            sze = os.path.getsize(fname)
        except Exception as ex:
            return 'no file'
        for fld in col_headers:
            if fld == "fullfilename":
                line = line + fname
            if fld == "name":
                line = line + '{:<30}'.format(os.path.basename(fname)) + ' '
            if fld == "date":
                line = line + self.GetDateAsString(fname) + ' '
            if fld == "size":
                line = line + '{:,}'.format(os.path.getsize(fname)) + ' '
            if fld == "path":
                line = line + os.path.dirname(fname) + ' '
        #line += '\n'
        return line