If I understand correctly the actions use a relative path starting from the current directory... If that's the case you can still act on the current directory itself since on unix systems each directory is linked to itselsf ( . )
- That does not change anything. If I'm able to process "rm ./", I would be able to process "/xxx/xxx/". That's the same.
- If I decide to make commands work in tree, I would like to work it for any node, using "context menu". You solution would not allow it.
- Still I have to solve problem of deleting "current directory". WinSCP would have to change to other directory
None of the above is too diffucult to solve, but it is not that easy as you think.