Click on any of the following for examples.
SFTP has all the functions SSH2 has and then some.
put)
get)
chdir)mkdir)rmdir or delete)pwd)nlist and rawlist)chmod)stat, lstat and size)delete and rename)