gets an array of folder names in the path
id | string | optional, the ID of the selected folder |
array | an array of folder names as objects with the IDs and the displayed names |
var pathNames = fmanager.getPathNames();
// or
var pathNames = fmanager.getPathNames(id);
If called without the id parameter, the method returns the current path of File Manager. If you pass the ID of a folder, the method will return the path to the folder.
The return value can look like this:
[{id:"files",value:"Files"},/* other folders */]
Back to top