Class Index | File Index

Classes


Class Rename

Renames folders and files.
Defined in: rename.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Rename(src, name)
Renames folders and files.
Class Detail
Rename(src, name)
Renames folders and files. Locates assets by AssetID's and folders by Path in 'src', renames them with the matching names specified in the 'name' parameter, and returns their new Path values. These results 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/rename?src=['Path']&name=['New Name']
http://127.0.0.1:55555/wf/rename?src="12345"&name="TestingRename"
Parameters:
src
AssetID/list and/or Path/list of folders to be renamed.
name
Name/list of new names for the files to be renamed. The new names must be in the same order as their correlating src
Returns:
( {'AssetID': {"success": "true","return": "AssetID"},...} )

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Oct 02 2015 17:09:29 GMT-0500 (CDT)