The correct path to a folder with spaces in its name

Hello, I am having problems with the path of a folder that needs to be synchronised. It is located on a hard drive without an operating system, i.e. without a root folder (Mac OS). The name of the hard drive contains spaces and dots, and I would like to keep it that way. The hard drive is called ‘Maynard A. Amerine’, and in the terminal, the path is shown as /Volumes/Maynard\ A.\ Amerine. But when I enter /Volumes/Maynard\ A.\ Amerine/DOCUMENTS in the path, it doesn’t work and I get an error message. If I omit the full stop and space, the folder is created, but I don’t really want that. Can someone please tell me how to write the path correctly?

Thanks in advance! Armin

You don’t have to escape spaces, try without the backslashes:

/Volumes/Maynard A. Amerine/DOCUMENTS

Thanks for the tip, but of course I’ve already tried that. The error message is attached. The first line there, which is about permissions, is not decisive in my opinion, because when I rename the same volume as shown above, everything works.

Looks like there’s an extra space after the path name.

This /Volumes/Maynard A Amerine/zhydg-kzjlg path works, so it’s the dot after the middle A that’s causing the problem. Hiding it with the backslash, e.g. /Volumes/Maynard A.\ Amerine/zhydg-kzjlg, as I found in terminal instructions, unfortunately does not work in Syncthing. Perhaps there is another way to hide the dot?

Problem solved, and thanks for the help. Apologies, as the solution was simpler than I thought. Instead of copying and pasting the path as usual and then adjusting it, I just typed it in normally, but the test is obviously the same. And suddenly it accepted the path! A New Year’s miracle! :wink: /Volumes/Maynard A. Amerine/DOCUMENTS was correct, but I typed it in instead of pasting it. So the first answer I got here was somehow the right one. Perhaps this post will be useful to others in the future. In any case, many thanks to everyone!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.