def refreshFileInfo(fDB, forceRecalc):
    """Updates the filename collection in the database, reflecting changes in the filesystem.

    :param fDB: the information regarding files
    :type fDB: FileDB
    :param forceRecalc: flag that tells if hashes & timestamps should be recalculated from the file always.
           If False (the default), recalculation happens always when the timestamp of the file is more recent than that
           in the database, or for new files. If True, we recalculate for every file.
    :type forceRecalc: bool

    """
    return fDB.update(forceRecalc=forceRecalc)