Special pathnames
Factor handbook » Input and output » Pathnames

Prev:Pathname presentations


If a pathname begins with resource:, it is resolved relative to the directory containing the current image (see image-path).

If a pathname begins with vocab:, then it will be searched for in all current vocabulary roots (see Working with code outside of the Factor source tree).

If a pathname begins with ~, it will be searched for in the home directory. Subsequent tildes in the pathname will be construed as literal tilde path or filenames and will not be treated specially. To access a filename named ~, you must construct a path to reference the filename, even if it's within the current directory such as ./~.