Make it possible to set parents for GoogleDrive folder create

This commit is contained in:
Jan Oberhauser 2020-01-29 13:07:53 -08:00
parent 0ce82e95ce
commit 70db0197e7

View file

@ -689,10 +689,12 @@ export class GoogleDrive implements INodeType {
displayOptions: {
show: {
'/operation': [
'copy'
'copy',
'create',
],
'/resource': [
'file',
'folder',
],
},
},
@ -700,7 +702,7 @@ export class GoogleDrive implements INodeType {
multipleValues: true,
},
default: [],
description: 'The IDs of the parent folders the file should be saved in.',
description: 'The IDs of the parent folders the file/folder should be saved in.',
},
{
displayName: 'Spaces',
@ -1084,6 +1086,7 @@ export class GoogleDrive implements INodeType {
// @ts-ignore
resource: fileMetadata,
fields: queryFields,
parents: options.parents || [],
});
returnData.push(response.data as IDataObject);