Append forward slash to end of directory if it does not already end with one.
directory
download_sanitize_path(directory)
character(1). Path
character ending with a forward slash.