move_resource Method

Moves one resource to a new location.

Syntax

def move_resource(source_resource_uri: str, destination_resource_uri: str) -> None: ...

Remarks

The on_move_resource method will move the resource indicated by SourceResourceURI to a new location under the resource indicated by DestinationResourceURI.

This method is associated with the depth property. If depth is set to "0", the class will move only SourceResourceURI. If depth is set to "infinity", the class will move SourceResourceURI and its entire subtree to locations relative to it.

If the user has acquired a lock_resource of infinite depth on either DestinationResourceURI or any collection it is under, SourceResourceURI will be added to that lock.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8161]