Extract meaningful path segments from a URL-style string, ignoring empty parts and dots.
Constraints
Example
>>> parse_path_segments('/home/user/docs/')
['home', 'user', 'docs']
>>> parse_path_segments('a//b/./c')
['a', 'b', 'c']
>>> parse_path_segments('./foo/../bar')
['foo', '..', 'bar']
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints