Button to get Properties of current folder or selected files/folders

The current Properties command button only works when there are files/folders selected. How to make the button show Properties of the current folder when no files/folders are selected, while keeping the behavior when there are files/folders selected?

Modify the button to

@nodeselect

@ifsel:numfiles=0,numdirs=0
Properties FILE={sourcepath}

@ifsel:else
Properties
3 Likes