using System;
using System.IO;

namespace ZionRobot.Helpers
{
	// Token: 0x0200000F RID: 15
	internal class Naming
	{
		// Token: 0x06000051 RID: 81 RVA: 0x00004038 File Offset: 0x00002238
		internal static string GetFileFullPath(string path, string fileName, string ext)
		{
			int i = 1;
			string fileFullPath = Path.Combine(path, fileName + ext);
			while (File.Exists(fileFullPath))
			{
				fileFullPath = Path.Combine(path, string.Format("{0}_{1}{2}", fileName, i, ext));
				i++;
			}
			return fileFullPath;
		}
	}
}
