I want to create a solution where documents from document library will sync automatically to local folder. Sync is not only for download at the same time whatever changes made to synced document should upload back to SharePoint. I found few articles but those are talking about how to download them only.
Is there anyway that I can achieve this through PowerShell or may be with onedrive API if available?
https://powershell.org/forums/topic/backup-sp-online-document-library-locally/
https://www.c-sharpcorner.com/blogs/get-all-documents-from-a-sharepoint-document-library-to-a-local-folder-using-powershell