Skip to content

Commit 7c744b9

Browse files
authored
Merge pull request #627 from ErmalKristo/fix-move-driveItem
Fixes failing driveItem move operation
2 parents 2187002 + a734afb commit 7c744b9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

office365/onedrive/driveitems/driveItem.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -524,12 +524,6 @@ def move(self, name=None, parent=None):
524524
"""To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem
525525
to move.
526526
527-
:param str name: The new name for the move. If this isn't provided, the same name will be used as the
528-
original.
529-
:param ItemReference or DriveItem or None parent: Reference to the
530-
parent item the move will be created in.
531-
"""
532-
533527
return_type = ClientResult(self.context, str())
534528
535529
def _create_and_add_query(parent_reference):
@@ -540,7 +534,7 @@ def _construct_request(request):
540534
request.method = HttpMethod.Patch
541535
542536
self.context.before_execute(_construct_request)
543-
qry = ServiceOperationQuery(self, "move", None, payload, None, return_type)
537+
qry = ServiceOperationQuery(self, "", None, payload, None, return_type)
544538
self.context.add_query(qry)
545539
546540
if isinstance(parent, DriveItem):

0 commit comments

Comments
 (0)