When using the folder.name or file.name Javascript classes, the returned values include the %20 characters in place of spaces in actual file or folder names.
For Example:
if (sFolder instanceof Folder) {
folderArray.push(sFolder.name);
}
Returns:
Folder%20one, Folder%20two, Folder%20three
What I need is:
Folder one, Folder two, Folder three
The same thing is happening with files, if there are any spaces in the file name they are replaced with %20. How can I remove those characters if folder names have 1 or even multiple spaces?