Windows samba share and empty spaces in the path

I discovered an anomaly in mounting a windows samba share through the terminal or a script. If the path has empty spaces in it, you cannot write your path like this:

smb://windowsDisk/foler\ to\ mount/

Nor can you you use quotes to make sure the path is ok

“smb://windowsDisk/foler to mount/”

You have to use url encoded strings:

smb://windowsDisk/foler%20to%20mount/

This has changed since Tiger because I never needed to do that with mount_smbfs before.

Leave a Reply

You must be logged in to post a comment.