drop "." swap
] if
{ "" "." ".." } member? [
- throw-no-parent-directory
+ no-parent-directory
] when
] unless ;
{ [ dup head.? ] [
rest trim-head-separators append-path-empty
] }
- { [ dup head..? ] [ drop throw-no-parent-directory ] }
+ { [ dup head..? ] [ drop no-parent-directory ] }
[ nip ]
} cond ;