getPathNames

gets an array of folder names in the path

array getPathNames(string id);

Parameters

idstringoptional, the ID of the selected folder

Returns

arrayan array of folder names as objects with the IDs and the displayed names

Example

var pathNames = fmanager.getPathNames();
 
// or
var pathNames = fmanager.getPathNames(id);

Details

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