SSH2 Question

I’m hoping someone can answer.

How can I get a list of files in a folder using php ssh2??
Currently for ftp you can use ftp_nlist() but there doesn’t seem to be a ssh2 compatible version.

I have an ftp function that needs to be converted to ssh2 for infor sec reasons.
The function currently grabs the files in a folder and deletes them.

Can anyone give me a hand?