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

Next:file-name ( path -- string )


Vocabulary
io.pathnames

Inputs
patha pathname string


Outputs
parenta pathname string


Word description
Strips the last component off a pathname.

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


Definition