Append / at the end of the name of the directory path if it is not there

appendDirName(source.dir)

Arguments

source.dir

string with path to the source directory

Value

string with / at the end