folder ending with dot (.) not showing SMB/Mac

EtienneB

Explorer
Joined
Feb 19, 2018
Messages
78
I noticed that when inside my SMB share I have a folder ending with a . (dot), that my Macbook will not show that folder. Only after renaming it by SSH-ing into the server and removing the dot, it does show.

I run TrueNas 12U2 now.

My SMB general settings:
vfs objects = fruit catia streams_xattr
fruit:encoding = native

Any ideas if I need other settings?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Ceate the Folder from the Mac. Dots are among the characters that are encoded in a special way on CIFS volumes. Hard coded into Mac OS, no way to change that. Once you know the encoding you can create similar folders on the command line ...
 

EtienneB

Explorer
Joined
Feb 19, 2018
Messages
78
Thanks.
The folder is created on the server by the sabnzbd jail, where the downloaded file contains a subfolder with the dot at the end.
Can create a script though to check these folders and rename them automatically.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Then create another folder ending with a dot from your Mac to see how it ends up in the file system :wink:
 

EtienneB

Explorer
Joined
Feb 19, 2018
Messages
78
When I create a folder via the Mac on the SMB share with a . on the end, ends up with a ? (question mark)
so:
test. => test?

Excuse my ignorance, but knowing this, how would it help me?
when sabnzbd creates a folder with an ending dot (.) on the server automatically, the mac does not see it. If create a folder the dot shows up as a ?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
The question mark is probably a special character. Try ls | cat -v or ls | hexdump. I just thought you want those dots to be there so I suggested finding the proper encoding. Then you can rename the folders accordingly.
 

EtienneB

Explorer
Joined
Feb 19, 2018
Messages
78
Got it thanks.
But I think I will run a script on the Truenas directly, like a cron job or so.
test. created via the mac, ends up as testM-) on the server share using ls | cat -v
hexdump is a bit too much for me now ;-)
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
That means Meta-), i.e. the ASCII code of ) and some high bit set. It does not mean the three characters M - )
That's why hexdump would be more helpful.
 
Top