fixed: SFTP stat didn't set directory/file type

This caused eg. libdvd to fail when playing ISOs