Pathnames
Factor handbook ยป Input and output

Prev:Reading and writing files
Next:File system metadata


Pathnames are strings that refer to a file on disk. Pathname semantics are platform-specific, and Factor makes no attempt to abstract away the differences. Note that on Windows, both forward and backward slashes are accepted as directory separators.

Pathname introspection:
parent-directory ( path -- parent )

file-name ( path -- string )

file-stem ( path -- stem )

file-extension ( path -- extension )

path-components ( path -- seq )


Appending pathnames:
prepend-path ( path1 path2 -- path )

append-path ( path1 path2 -- path )


Normalizing pathnames:
normalize-path ( path -- path' )

absolute-path ( path -- path' )

resolve-symlinks ( path -- path' )


Additional topics:
Pathname presentations
Special pathnames