def get_file_suffix(prefix, filename):
  # Depending on how the linking was done, the destination could be absolute or relative, with or without '/'.
  result = re.match(r'^(?:/home/%s/)?%s.([0-9a-f]+)/?$' % (env.user, prefix), filename)
  if result is None or len(result.groups()) != 1:
    return None
  return result.groups()[0]
dataset/ETHPy150Open viewfinderco/viewfinder/fabfile.py/get_file_suffix/original