So I duplicated the steps in #70 and was able to reproduce the "type: directory" problem.
Then I edited smb.conf and set "store dos attributes = No" in the [global] section and restarted smbd.
If I redo the steps in #70 the issue is resolved resulting in: "type: regular"
"store dos attributes" was set to No by default in samba until version 4.9 so the change would have impacted Ubuntu from Ubuntu 19.04 forward.
So I duplicated the steps in #70 and was able to reproduce the "type: directory" problem.
Then I edited smb.conf and set "store dos attributes = No" in the [global] section and restarted smbd.
If I redo the steps in #70 the issue is resolved resulting in: "type: regular"
"store dos attributes" was set to No by default in samba until version 4.9 so the change would have impacted Ubuntu from Ubuntu 19.04 forward.