...
Code Block |
---|
assetCollection = CreateObject("roAssetCollection") localCurrentSync = CreateObject("roSyncSpec") if localCurrentSync.ReadFromFile("local-sync.xml") then assetCollection = localCurrentSync.GetAssets("download") endif |
ifFailureReason
GetFailureReason() As String
Returns additional information if a method fails.
ifAssetCollection
AddAsset(asset_info As Dynamic) As Boolean
Adds a single asset from an associative array or JSON-formatted string. If the argument is a string, it should match the format used for a single asset in a JSON sync spec. Returns true to indicate success and false to indicate failure. If false is returned more detailed information is available by calling
...
the GetFailureReason
method.
AddAssets(asset_info_array As Dynamic) As Boolean
Adds multiple assets from an enumerable object (an roList, roArray, or string containing a JSON-formatted array) that contains compatible associative arrays. Returns true to indicate success and false to indicate failure. If false is returned more detailed information is available by calling
...
the GetFailureReason
method.
GetAssetList() As roList
Returns an roList instance containing associative arrays of asset metadata. This method is not efficient and is, therefore, recommended for debugging and diagnostic purposes only.
...