Prompt user to choose existing folder or add one

Following on from my earlier request around manipulating files, I’m now attempting to rename and move the file I’m reviewing into a subfolder of its current folder.

Ideally I’d like to prompt the user with a list of subfolders of the current folder, then allow them to either choose one or type in the name of a new folder to be created. From searching the forum I’ve found a plugin that will prompt for a folder, but I can’t think of a way to repurpose this unless I have the user cancel if a suitable folder doesn’t exist, then prompt them if one wasn’t chosen.

Any suggestions much appreciated.



Actually I’ve been trying the ‘choose folder’ plugin and now realise it has the ‘new folder’ button, which meets my needs in this case. So far all is working well.