jasonrollins / shareplum

Pythonic SharePoint
MIT License
179 stars 96 forks source link

Allow site.Folder() usage without the potential creation of a folder #112

Open kannes opened 4 years ago

kannes commented 4 years ago

I followed the example on https://pypi.org/project/SharePlum/ and executed the folder = site.Folder('Shared Documents/This Folder') statement. I expected an error but instead I got a new folder created on our sharepoint.

It would be great if by default this method would raise an Exception if the user passed a non-existent folder URL instead of creating it.

I can imagine it being some specific functionality of the Sharepoint API itself but I am hopeful ;)

jasonrollins commented 3 years ago

SharePlum is very opinionated in the way it works. Those opinions can be very arbitrary unfortunately. I could add this in, but I have to leave the default as it is now, otherwise it will break for existing users.