IPWorks Cloud 2020 iOS Edition

Questions / Feedback?

moveResource (method)

Moves a file or folder.

Syntax

- (void)moveResource:(NSString*)resourceId :(NSString*)newParentIds;
public func moveResource(_ resourceId: String, _ newParentIds: String) throws -> Void

Remarks

This method "moves" an existing file or folder specified by ResourceId to the folders specified by NewParentIds (which should be specified as a comma-separated list of folder resource Ids).

After this method returns, the folders specified by NewParentIds will be the only parents of in the resource's parent list. If you wish to add additional parents for the resource without removing its existing parents, use AddParents instead.

Note that resources within a shared drive must always have exactly one parent, and that only shared drive members with the "file organizer" or "organizer" roles can move files and folders within a shared drive.

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