Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes failing driveItem move operation #627

Merged
merged 2 commits into from
Jun 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions office365/onedrive/driveitems/driveItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,12 +524,6 @@ def move(self, name=None, parent=None):
"""To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem
to move.

:param str name: The new name for the move. If this isn't provided, the same name will be used as the
original.
:param ItemReference or DriveItem or None parent: Reference to the
parent item the move will be created in.
"""

return_type = ClientResult(self.context, str())

def _create_and_add_query(parent_reference):
Expand All @@ -540,7 +534,7 @@ def _construct_request(request):
request.method = HttpMethod.Patch

self.context.before_execute(_construct_request)
qry = ServiceOperationQuery(self, "move", None, payload, None, return_type)
qry = ServiceOperationQuery(self, "", None, payload, None, return_type)
self.context.add_query(qry)

if isinstance(parent, DriveItem):
Expand Down
Loading