# ensureCloudStorageFolder
State Resource
This is a State Resource as provided by the tymly-cloudstorage-plugin plugin.
# Purpose
Creates the last folder in the specified path (if it already exists, it does nothing). Be aware that if one of the folders prior to the last folder doesn't exist, the state resource will throw an exception. So for example, if you pass in the path 'Shared Documents/1234567890/Audit/Photos', if the folder 'Shared Documents/1234567890/Audit' doesn't exist, then the state resource will throw an exception.
# Usage
# Example
{
"EnsureCloudStorageFolder": {
"Type": "Task",
"Resource": "module:ensureCloudStorageFolder",
"ResourceConfig": {
"provider": "provider",
"remoteFolderRoot": "Shared Documents"
},
"Parameters": {
"remoteFolderPath": "1234567890/Audit/Photos"
},
"ResultPath": "$.sharepointMeta",
"Next": "GetSharepointContents",
"Catch": [
{
"ErrorEquals": [
"States.ALL"
],
"End": true
}
]
}
}
# Options
# Optional properties
# provider
The id of a plugin that interacts with a Document Management System. For example 'sharepoint', 'alfresco' etc.
- Type:
string
# remoteFolderRoot
- Type:
string