Samba Empty Folder

Samba Empty Folder

I recently had an folder in one of my network shares showing up empty, despite the fact that it was not empty. After some investigation it turned out that the containg folder had a trailing space symbol, which is not allowed in the SMB protocol. Removing the trailing space (and reloading the mount) fixed the issue. I ran the following command to see if I had more folders with that issue and sure enough I found another one.

find . -name "* " -type d