code: def set_fingerprint(fullpath, fingerprint=None):
      
      try:
          fingerprint = fingerprint or utils.file_fingerprint(fullpath)
  
          record = model.FileFingerprint.get(file_path=fullpath)
          if record:
              record.set(fingerprint=fingerprint,
                         file_mtime=os.stat(fullpath).st_mtime)
          else:
              record = model.FileFingerprint(
                  file_path=fullpath,
                  fingerprint=fingerprint,
                  file_mtime=os.stat(fullpath).st_mtime)
          orm.commit()
      except FileNotFoundError:
          orm.delete(fp for fp in model.FileFingerprint if fp.file_path == fullpath)
docs: Set the last known modification time for a file