Path
Examples
Basic Examples (1)
When looking up a file, search a particular directory:
dir = $TemporaryDirectory;Create a file for this example so there is something to search for:
Put[47!, FileNameJoin[{dir, "fact"}]]With the default system search path the file is not found:
Get["fact"]The file is found when the Path option is set to the directory:
Get["fact", Path -> dir]Tech Notes
History
Introduced in 1999 (4.0)
Text
Wolfram Research (1999), Path, Wolfram Language function, https://reference.wolfram.com/language/ref/Path.html.
CMS
Wolfram Language. 1999. "Path." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Path.html.
APA
Wolfram Language. (1999). Path. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Path.html
BibTeX
@misc{reference.wolfram_2026_path, author="Wolfram Research", title="{Path}", year="1999", howpublished="\url{https://reference.wolfram.com/language/ref/Path.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_path, organization={Wolfram Research}, title={Path}, year={1999}, url={https://reference.wolfram.com/language/ref/Path.html}, note=[Accessed: 13-June-2026]}