code: def file_fingerprint(fullpath):
      
      stat = os.stat(fullpath)
      return ','.join([str(value) for value in [stat.st_ino, stat.st_mtime, stat.st_size] if value])
docs: Get a metadata fingerprint for a file