Class Index | File Index

Classes


Class Import

Imports files or folders and returns their paths/ids.
Defined in: import.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Import(src, updateType)
Imports files or folders and returns their paths.
Class Detail
Import(src, updateType)
Imports files or folders and returns their paths. Imports all of the folders and files specified by assetID in 'src' and returns their paths. These paths are parsed into a text object keyed by AssetID from the JSON file in which they are contained, and by default are displayed to the user.
'MBurl'/wf/restapi/1/import?src=["AssetID"]
http://127.0.0.1:55555/wf/restapi/1/import?src=["12345"]
http://127.0.0.1:55555/wf/restapi/1/import?src=A/B/C/file.txt
http://127.0.0.1:55555/wf/restapi/1/import?src=["A/B/C/","A/B/C/file.txt"]
Parameters:
src
a single asset id, asset path or directory path or an array of any combination of id's/paths. src=12345 or src=["A/B/C/","A/B/C/file.txt", 123456]
updateType
Options are:
'ViewAndData' - previews and metadata potentially will be updated. Does not update on demand previews.
'Data' - metadata potentially will be updated.
'View' - previews potentially will be updated. Does not update on demand previews.
'ForceView' - the creation of a new preview request will be force regardless of the state of the cache and preview queue. On demand previews will be cleared.
Returns:
( {'AssetID': "path",...} )

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Dec 15 2023 01:43:54 GMT-0600 (CST)