### 4.2.2 Internal directories

You can create a directory that is not actually on your hard drive but is treated like one by Xcas with the command NewFold.

- NewFold takes one argument: MyIntDir, a variable name (see Section 3.3.1).
- NewFold(MyIntDir) creates a new internal directory named MyIntDir. (Note that quotation marks are not used.)

Internal directories will be listed with the VARS() command (see Section 3.3.9). To actually use this directory, you will have to use the SetFold command.

- The SetFold command takes MyIntDir, the variable name of an internal directory created with NewFold.
- SetFold(MyIntDir) makes MyIntDir the working directory (see Section 4.2.1).

You can print out the internal directory that you are in with the GetFold command.

- GetFold takes no arguments.
- GetFold() returns the name of the current internal directory.

The DelFold command will delete an internal directory.

- DelFold takes MyIntDir, the variable name of an internal directory.
- DelFold(MyIntDir) will delete the directory if it is empty.