in reply to How to get directory listing using Net::SFTP::Recursive

I don't understand what you mean by "create a file list to a file from the remote server to a local directory and file", but searching the documentation of Net::SFTP::Foreign (which I'd recommend for SFTP) for the string "recurs" yields lots of matches. Maybe be more concrete, show what you need to do and how you did it via FTP?

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,