O365 / python-o365

A simple python library to interact with Microsoft Graph and Office 365 API
Apache License 2.0
1.65k stars 419 forks source link

Fix bug with `get_item` on `CopyOperation` #1033

Closed will-byrne-cardano closed 8 months ago

will-byrne-cardano commented 9 months ago

method CopyOperation.get_item only worked if the copied item was copied to the same location as the original item. Here we introduce the optional argument target which defaults to the parent if not given (i.e. the scenario where we copy to the same location as original item) so that the copied item can be successfully retrieved from it's new location upon successful copy completion.

https://github.com/O365/python-o365/issues/872

Also, update mistake in comment on parent type in the init

alejcas commented 8 months ago

merged! thanks again