({{, (RefLink[$LocalBase, paclet:ref/$LocalBase]) 
gives the base directory to use for local object storage.}})

OpenersNotesSection(Spacer1)Details

(RefLink[$LocalBase, paclet:ref/$LocalBase]) defines where new local objects are stored by default by (RefLink[LocalObject, paclet:ref/LocalObject]).

(RefLink[$LocalBase, paclet:ref/$LocalBase]) can be reset to any file:// URI or file path. $LocalBase=(RefLink[File, paclet:ref/File])["path"] is also supported.

The initial value of (RefLink[$LocalBase, paclet:ref/$LocalBase]) is (RefLink[$DefaultLocalBase, paclet:ref/$DefaultLocalBase]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (5)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Get the current local object base:

$LocalBase

Change the local object base to a new temporary directory:

$LocalBase=CreateDirectory[]

OpenersExampleSection1(Spacer1)Scope  (2)

Set the local object base to a named temporary directory specified in a system-independent way:

$LocalBase=$TemporaryDirectory<>$PathnameSeparator<>"TestBase"

Give a directory to use as local base directory:

$LocalBase=File["/tmp/MyLocalBase"]

OpenersExampleSection3(Spacer1)Properties & Relations  (1)

(RefLink[$CloudBase, paclet:ref/$CloudBase]) is the base URI for persistent cloud storage:

$CloudBase

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[$DefaultLocalBase, paclet:ref/$DefaultLocalBase])  ▪  (RefLink[$LocalSymbolBase, paclet:ref/$LocalSymbolBase])  ▪  (RefLink[LocalObjects, paclet:ref/LocalObjects])  ▪  (RefLink[$CloudBase, paclet:ref/$CloudBase])  ▪  (RefLink[$TemporaryDirectory, paclet:ref/$TemporaryDirectory])  ▪  (RefLink[PersistenceLocation, paclet:ref/PersistenceLocation])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Local Objects, paclet:guide/LocalObjects])}, {▪(RefLinkPlain[Wolfram System Setup, paclet:guide/WolframSystemSetup])}})}})