View folder name on delete

The following code allows us to delete the folder we are in, but I would like the confirmation message to show the folder name.

@confirm:¿Do you really want to delete the folder?|Delete|Cancelar
@set folder={sourcepath$|noterm}
Go ..
Delete FILE={$folder} QUIET

I have tried using: {sourcepath|nopath|noterm} but it does not work:

@confirm:¿Do you really want to delete the folder {sourcepath|nopath|noterm}?|Delete|Cancelar

Thanks

Opus should go up a level automatically if the current folder is deleted.

Do you need more than Delete {sourcepath$|noterm} here?

1 Like

Wonderful @Leo, just what I needed, thank you very much!