private string MakeDestinationFile(AssetTypeEnum assetType, string s, AssetFileEnum fileType, int fileNumber) { bool unrootedOther = (assetType == AssetTypeEnum.Other || fileType == AssetFileEnum.Other) && !Path.IsPathRooted(s); string directory = unrootedOther ? Path.GetDirectoryName(s) : AssetFile.DirectoryForFileEnum(assetType, fileNumber == 0, fileType); string targetFile = directory + "\\" + Path.GetFileName(s); return(targetFile); }