private string GetDestinationFolder(string folder)
{
string destinationFolder = folder ?? string.Empty;
// Append a folder seperator if a folder has been specified without one.
if (!string.IsNullOrEmpty(destinationFolder) && !destinationFolder.EndsWith("/"))
{
destinationFolder += "/";
}
return destinationFolder;
}