How to synchronize two folders locally and in Cryptomator?

I have put all my markdown notes in Cryptomator, but I need to view these files in MWeb. And sometimes, I need to edit them on my iphone, so I need to synchronize the folders of MWeb and Cryptomator.

Please note that these notes have a complex folder structure, which means not all files are located in the same root directory, as there will be many deep level directories here.

The document provides examples of uploading all images, but how do I upload a folder?

If possible, can we determine whether to download or upload based on time comparison?

Furthermore, can we use the file record table to determine whether a non-existent file should be deleted or uploaded?