name_type for name_query with smbclient -M name should be used. that way,
-rw-r--r-- 17982 COPYING
-rw-r--r-- 5409 README
drwxr-xr-x - docs
drwxr-xr-x - examples
drwxr-xr-x - source3