The behavior to use on conflict scenarios. It should be one of the following values: ('fail', 'replace', 'rename')
text
No
(no default)
Examples
Copy an item to a folder
get a folder at "Folder1/Folder2"
use the above as the base folder
copy the uploaded file to the base folder
Copy an item to a folder with a conflict behavior
get a folder at "Folder1/Folder2"
use the above as the testing folder
get a folder at "Folder1/Folder2/Conflictive Folder"
use the above as the conflictive folder
copy the conflictive folder to the testing folder
the conflict behavior is "rename"
Google Drive allows for multiple folders with the same name in a parent folder. For now, as the blueprint interface returns only one reference, it is returning the first item on the returned list. In case there are more than one folder with the same name, an error will be raised. In the future, this may change to a list of FolderReferences.
get a root folder
use the root folder as the base folder
create a folder in the base folder
the folder name is "My Test Folder"
get a folder at "Folder1/Folder2"
use the folder as the base folder
create a folder in the base folder
the folder name is "My Test Folder"
the conflict behavior is "rename"
get a folder at "Folder1/Folder2"
get the folder's items
use the first item as the file
delete the file
get a folder at "Folder1/Folder2"
get the folder's items
use the first item as the file
download the file
get a folder at "The Folder/The Subfolder"
get a root folder
get a folder at "Folder1/Folder2"
get the folder's items
get a folder at "Folder1/Folder2"
get the folder's items
use the first item as the file
get a folder at "Folder1/Folder2/Folder3"
use the above as the new folder
move the file to the new folder
get a folder at "Folder1/Folder2"
get the folder's items
use the first item as the file
get a folder at "Folder1/Folder2/Folder3"
use the above as the new folder
move the file to the new folder
the conflict behavior is "rename"
get a folder at "Folder1/Folder2"
get the folder's items
use the first item as the file
rename the file to "The new name.jpg"
get a folder at "Folder1/Folder2"
get the folder's items
use the first item as the file
rename the file to "The new name.jpg"
the conflict behavior is "rename"
# Upload a file to the Playground
the file
get a folder at "Folder1/Folder2"
upload the file to the folder
the file name is "uploaded-file.jpg"
# Upload a file to the Playground
the file
get a folder at "Folder1/Folder2"
upload the file to the folder
the file name is "uploaded-file.jpg"
the conflict behavior is "rename"