private string GetRemotePath(string fileName) { fileName = ZAppHelper.ReplaceIllegalChars(fileName, '_'); while (fileName.IndexOf("__") != -1) { fileName = fileName.Replace("__", "_"); } return(FTPHelpers.CombineURL(FTPAccount.GetSubFolderPath(), fileName)); }