Write a Python function called resolve path parts that normalizes a URL path by resolving '.' and '..'…
Write a Python function called resolve path parts that normalizes a URL path by resolving '.' and '..'…: a task in repo2rlenv-r2e (Harbor dataset). The function takes a single argument: - path parts (list of str): A list of URL path segments obtained by splitting a URL path on '/'. Absolute paths…
The task
The function takes a single argument: - `path_parts` (list of str): A list of URL path segments obtained by splitting a URL path on '/'. Absolute paths start with an empty string as the first element (e.g. '/a/b' → ['', 'a', 'b']); relative paths do not.
Part of FineEnvs/repo2rlenv-r2e.