Create/Sync Folder Nested Inside Other Folders

I have a less than common use case that I am hoping to find an answer for. I have a number of folders inside a directory, and for each of those I would like to have a folder generated and synchronized, and if new ones were created I would also like those to receive the new subdirectory and to be synced.

The basic structure would be “~\Documents\Main*\Secondary” and the intention is to have any new asterisk marked folder receive the Secondary folder, which will be synced.

For context the intent is to sync and collaborate on iRacing setups with a few friends automatically for each car class. iRacing’s folder structure is "~\Documents\iRacing\setups\car name\share". In my case “car name” is the variable I would like to account for without having to share each car folder individually or create new shares when new cars are released.

Thanks for any help in advance!

I’m going to use the following definitions to make sure I understand your use case:

  • a directory is how the OS organizes files
  • A Folder is how Syncthing selects files to synchronize

It seems like you want a new Folder to be created automatically upon the creation of a new directory.

Syncthing can’t do that on its own but you could script a solution that would do that. Do I understand your use case correctly?

Thank you for the response, that’s what I suspected was the case from my findings, but I wanted to check and see if someone was aware of some wizardry that would’ve gotten me there in as close to an automated fashion as possible.

This can be automated with scripting and Config Endpoints — Syncthing documentation.