Class FolderContents
Returns the names of the files and sub-folders contained in a folder specified by path.
Defined in: folderContents.js.
Constructor Attributes | Constructor Name and Description |
---|---|
FolderContents(src, page_size, index)
Returns the names of the files and sub-folders contained in a folder specified by path.
|
Class Detail
FolderContents(src, page_size, index)
Returns the names of the files and sub-folders contained in a folder specified by path.
Discovers the names of the files and folders contained in a folder specified in 'src'. These names 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/folderContents?src=["FolderPath"]
http://127.0.0.1:55555/wf/restapi/1/folderContents?src=["Assets/"]
- Parameters:
- src
- Path/list of paths to folder or folders for content reading.
- page_size
- The number of results to return - optional
- index
- The starting index - optional
- Returns:
- ( {"AssetID": {"files":["TheFiles"],"folders":["TheFolders"]},...} )