# Creating Folders

There are two ways to create a new folder using Opus. The first way is the same as in Explorer - right-click on the background of the file display (or on a folder in the tree) and choose **New / Folder**.

The second way is to use the _Create Folder_ dialog, which you can get to using the **New Folder** button on the default toolbar.

As well as letting you make a new folder, the _Create Folder_ dialog offers some additional functionality:

* You can make multiple folders simultaneously
* You can make a whole sub-tree of folders at once (so a folder, a sub-folder, a sub-sub-folder, and so on, all with the one command)
* You can make multiple sub-folders under the same parent folder at once
* You can automatically navigate to the newly created folder or folders

### Making a single folder

![](https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-6f6b29267f07bba7eab0b2cd2d7052a9a6ae67d4%2Fcreate_folder.png?alt=media)

This shows the _Create Folder_ in single folder mode.

The two numbers displayed in below the name field indicate the length of the name you have entered and the total length of the path once the folder is created. This can be useful to ensure that your path length doesn't grow beyond the normal maximum of 259 characters - although Opus has no problems dealing with longer paths than that, many other programs may have trouble.

### Making a folder tree

You can create a whole tree of sub-folders at once by entering the folder names separated by slashes. For example:

![](https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-8cfa6987e0ad5e741bd1181451fa082ef4edab0b%2Fcreate_sub_folders.png?alt=media)

This would create a folder called _One_ in the current location, then a sub-folder in _One_ called _Two_, a sub-folder in _Two_ called _Three_, and so on, all in the one operation.

### Making multiple folders at once

If you turn on the **Create multiple folders** option you can create multiple folders simultaneously in the current location. If this is turned on the name field changes to a multi-line text box that lets you enter as many names as you like (one per line):

![](https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-9f6e08fd3335102aa30dc664ac4272ed255274c8%2Fcreate_folder_multi.png?alt=media)

### Making multiple child folders

In the above example, the new folders will all be created relative to the current folder. You can also create multiple child-folders at the same sub-folder level using the vertical bar character (`|`) to separate the child folder names.

![](https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-0e9390e2c3557207baf9bf5c953a73216ab7b606%2Fmakedir_multi.png?alt=media)

The above example will create two child folders, _2023_ and _2024_, and below those create 12 sub-folders (one for each month of the year).

### Making numbered folders

When the dialog is in **Create multiple folders** mode, it supports automatic creation of multiple numbered folders using the `<..>` insertion code.

The full format of this code is `<a-b+c>`, which will insert numbers from _a_ through to _b_, incrementing by _c_ each time.

The _a_ value can include zero padding - for example, `<001-100>` would create folders 001, 002, 003, ..., 100.

The _-b_ and _+c_ values are optional:

* If _-b_ is not given, the first number is assumed to be the top of the range and the bottom defaults to 1 - so to quickly create ten numbered folders, simply use `<10>`.
* If _+c_ is not given the default increment value is 1.

Any text outside the numbering code is preserved verbatim, e.g. `New Folder <5>` would create "New Folder 1", "New Folder 2", etc.

### Using the dialog in multiple folder mode

In **Create multiple folders** mode, the Enter key moves to a new line in the text box, but you can still quickly _OK_ the dialog by pushing Enter twice on the last line, or by pushing Shift+Enter on any line. Since double-tapping Enter at the end is only one extra keystroke, even when only creating a single folder, you may find it convenient to leave the dialog in this mode all the time.

### Automatically reading the new folder

The drop-down menu attached to the **OK** button lets you choose what to do with the new folder once it's been created.

![](https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-43ad64f1b6b4a37d68c9eea29355d08bc335ce4b%2Fnew_arc_-_tristate.png?alt=media)

* **Create Folder**: The new folder (or folders) is created, but not read.
* **Read Folder**: The file display will automatically navigate into the new folder once it is created.
* **Read Dual**: The new folder will be opened in the other file display (the Lister will be put into dual-display mode if needed). If you are creating multiple folders, only the first folder will be read.
* **Read New Tab**: The new folder will be opened in a new folder tab. If you are creating multiple folder a new tab will be created for each new one.
* **Read New Tab (Dual)**: The new folder will be opened in a new folder tab in the other file display.

You can also hold the appropriate qualifier key when clicking the **OK** button, rather than dropping down the menu.
