This is on a Chromecast, but I assume it’s OS independent.
There is a setting to enable showing hidden files and folders (files starting with a . (dot)) which I have enabled.
This works fine using SMB.
But when I connect to the same server using FTP, the hidden folders does not show up.
I have confirmed with Filezilla client that it’s not a server issue (shows in Filezilla).