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)
Returns the names of the files and sub-folders contained in a folder specified by path.
|
Class Detail
FolderContents(src)
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/folderContents?src=['FolderPath']
http://127.0.0.1:55555/wf/folderContents?src=["Assets/"]
- Parameters:
- src
- Path/list of paths to folder or folders for content reading.
- Returns:
- ( {'AssetID': {'files':['TheFiles'],'folders':['TheFolders']},...} )