IPWorks Cloud 2020 JavaScript Edition

Questions / Feedback?

CopyResource Method

Copies a file.

Syntax

async googledrive.copyResource(resourceId : string, newName : string, parentIds : string): Promise<string>

Remarks

This method copies the file identified by ResourceId and returns the Id of the newly created copy.

The NewName parameter defines the name of the copied file.

The ParentIds parameter should be a comma-separated list of existing folder Ids to use as parents for the copied file. If left blank, the copied file will inherit the same parents of the original.

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