The SCP task from ant-jsch with sftp="true" only supports get/put commands. SFTP has many more commands like ls, mkdir, rm, rmdir and so on. And SFTP also supports a command-list in batch mode. The sftp="true" flag is a great way to move from SCP to SFTP without much pain but if one needs the other SFTP commands it can't be done via ant. So I'm proposing to implement a new SFTP task (within ant-jsch) that supports the full range of SFTP commands via command and commandResource attributes (similar to SSHExec's command and commandResource attributes).