Create New Folder in the Source File Display or the Selected Folder

Here is what this button displays:
Create New Folders).dcf (2.4 KB)

Here is the button:
Create New Folders).dcf (3.3 KB)

Here is the LMB code:

@nodeselect

@ifsel:numdirs=1
@Set FolderName={dlgstringS|Create a New Subfolder within {sourcepath}{file}.\n\nPlease enter the new subfolder name.|{file}}
FileType NEW=directory NEWNAME=norename:"{$FolderName}" PATH="{filepath}"

@ifsel:else
@Set FolderName={dlgstringS|Create a New Subfolder within {sourcepath}.\n\nPlease enter the new subfolder name.}
FileType NEW=directory NEWNAME=norename:"{$FolderName}" PATH="{sourcepath}"

Here is the MMB code:

@nodeselect

@ifsel:numdirs=1
FileType NEW=directory FROMCLIPBOARD PATH="{filepath}"

@ifsel:else
FileType NEW=directory FROMCLIPBOARD PATH="{sourcepath}"

If a single folder is highlighted, the new chosen folder will be created in the selected folder. If any other combination of files, folders, both or neither is highlighted, the new folder will be created in the source file display.

If the new folder name already exists where it is to be created, the standard incremented number will be added to the folder name as a suffix.

Hope this is useful.

FileType allows you to pass a path using the PATH argument:

This eliminates the need to navigate or refresh the File Display and reduces visual movement.