title: SFTP: return number of files in remote directory?
body: <p>I sent a batch of files to a remote server via SFTP. If it were a local directory I could do something like this <code>ls -l | wc -l</code> to get the total number of files. However, with SFTP, I get an error <code>Can't ls: "/|" not found</code>.</p>