file-stem ( path -- stem )
Factor handbook » Input and output » Pathnames

Prev:file-name ( path -- string )
Next:file-extension ( path -- extension )


Vocabulary
io.pathnames

Inputs
patha pathname string


Outputs
stema string


Word description
Outputs the file-name of path with the file extension removed, if any.

Examples
USING: io.pathnames prettyprint ; "/usr/bin/gcc" file-stem .
"gcc"

USING: io.pathnames prettyprint ; "/home/csi/gui.vbs" file-stem .
"gui"


See also
file-name, file-extension

Definition