Code now checks if given folder ends with "/". Also corrected Javadoc.
Authored by: jwjoubert 2014-11-22
Parent: [r31183]
Child: [r31185]