gives the base directory to use for local object storage.


$LocalBase
gives the base directory to use for local object storage.
Details

- $LocalBase defines where new local objects are stored by default by LocalObject.
- $LocalBase can be reset to any file:// URI or file path. $LocalBase=File["path"] is also supported.
- The initial value of $LocalBase is $DefaultLocalBase.
Examples
open all close allBasic Examples (2)
Scope (2)
Properties & Relations (3)
A file scheme URL can be converted to a path by ExpandFileName:
FileNameJoin accepts file scheme URLs:
$CloudBase is the base URI for persistent cloud storage:
Related Guides
History
Text
Wolfram Research (2015), $LocalBase, Wolfram Language function, https://reference.wolfram.com/language/ref/$LocalBase.html.
CMS
Wolfram Language. 2015. "$LocalBase." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$LocalBase.html.
APA
Wolfram Language. (2015). $LocalBase. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$LocalBase.html
BibTeX
@misc{reference.wolfram_2025_$localbase, author="Wolfram Research", title="{$LocalBase}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/$LocalBase.html}", note=[Accessed: 13-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_$localbase, organization={Wolfram Research}, title={$LocalBase}, year={2015}, url={https://reference.wolfram.com/language/ref/$LocalBase.html}, note=[Accessed: 13-August-2025]}