({{, (RefLink[DirectoryStack, paclet:ref/DirectoryStack])[]
gives the directory stack that represents the sequence of current directories used. }})

OpenersNotesSection(Spacer1)Details

(RefLink[DirectoryStack, paclet:ref/DirectoryStack])[] returns a list of full names of directories.

Each call to (RefLink[SetDirectory, paclet:ref/SetDirectory]) prepends one element to the directory stack; each call to (RefLink[ResetDirectory, paclet:ref/ResetDirectory]) drops one.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Setting directory pushes a directory onto the (RefLink[DirectoryStack, paclet:ref/DirectoryStack])[]:

SetDirectory[$InstallationDirectory]

DirectoryStack[]

Resetting directory pops a directory from the (RefLink[DirectoryStack, paclet:ref/DirectoryStack])[]:

ResetDirectory[]

DirectoryStack[]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Directory, paclet:ref/Directory])  ▪  (RefLink[SetDirectory, paclet:ref/SetDirectory])  ▪  (RefLink[ResetDirectory, paclet:ref/ResetDirectory])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Naming and Finding Files, paclet:tutorial/NamingAndFindingFiles])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Directories & Directory Operations, paclet:guide/DirectoriesAndDirectoryOperations])}})}})