parent-directory ( path -- parent )
Factor handbook > Input and output > Pathnames

Next:file-name ( path -- string )


Vocabulary
io.pathnames

Inputs and outputs
patha pathname string
parenta pathname string


Word description
Strips the last component off a pathname.

Examples
USING: io io.pathnames ; "/etc/passwd" parent-directory print
/etc/


Definition