stateless-systems / net-ftp-list

29 stars 14 forks source link

Fix unix symlinks without arrow #13

Closed inpego closed 6 years ago

inpego commented 6 years ago

The OpenSSH SFTP client does not currently support arrows in symlinks (see https://unix.stackexchange.com/questions/366662/how-to-list-the-symbolic-links-with-sftp), so Net::FTP::List.parse(sftp_command_output) fails with following error:

NoMethodError: undefined method `strip' for nil:NilClass
    from net-ftp-list-3.2.10/lib/net/ftp/list/unix.rb:75:in `parse'

My PR fixes this error.