[path] Implement resolve() method