pathway icon indicating copy to clipboard operation
pathway copied to clipboard

[QUESTION] Is there any way to sync your local folder to Sharepoint folder

Open sayymeer opened this issue 2 months ago • 3 comments

What is your question or problem? Please describe. Is there any way that I use pathway sharepoint connector in streaming mode to share my local folder with a sharepoint folder. It saves all the files available on sharepoint to my local folder and also updates them if there are some changes on Sharepoint

sayymeer avatar Sep 14 '25 12:09 sayymeer

Hi @sayymeer!

At the moment, the connector for SharePoint in Pathway is only available in input mode, meaning we can only ingest data from SharePoint, but not write to it. So, at this time, writing functionality for SharePoint is not supported.

zxqfd555 avatar Sep 14 '25 19:09 zxqfd555

I want to write Sharepoint data to my file system locally something like pw.io.fs.write But i want to preserve my file structure

sayymeer avatar Sep 15 '25 13:09 sayymeer

Since there is currently no output connector for SharePoint, I would suggest using pw.io.fs.read to track the object changes in the local filesystem, and a combination of pw.io.python.write and your custom logic with the Office365-REST-Python-Client Python package to implement the custom writing logic that you need.

To get the object paths in the local filesystem, you can use the with_metadata flag of the pw.io.fs.read method. Then, the dictionary provided in the _metadata column will contain the path of the object in a local filesystem.

zxqfd555 avatar Sep 15 '25 21:09 zxqfd555