public string getCacheAddress(string itemPath, string cacheSaveExtension) { var fileName = itemPath.safeFileName(UseBase64EncodedStringInFileName); if (PathLocalCache.size() + fileName.size() > 250) { "in getCacheAddress, the combined filename was too big: {0} + {1}".error(PathLocalCache, fileName); fileName = fileName.Substring(0, PathLocalCache.size() + fileName.size() - 250); "in getCacheAddress, new fileCacheName (with size {0}): {1}".error(fileName.size(), fileName); } return(PathLocalCache.pathCombine(fileName + cacheSaveExtension)); }