this code assumes that absolute_path does not contains `/`?