Nexus.Client.ModManagement.ReadMeManager.CheckReadMeFolder C# (CSharp) Method

CheckReadMeFolder() public method

Checks if the read me folder is already present, otherwise it tries to create it.
public CheckReadMeFolder ( ) : bool
return bool
		public bool CheckReadMeFolder()
		{
			bool booCheck = false;
			string strCurrentDirectory = Directory.GetCurrentDirectory();
			try
			{
				Directory.SetCurrentDirectory(Directory.GetParent(m_strReadMePath).FullName);
				Directory.CreateDirectory("ReadMe");
				Directory.SetCurrentDirectory(m_strReadMePath);
				Directory.CreateDirectory("Temp");
				booCheck = true;
			}
			catch
			{
				booCheck = false;
			}
			finally
			{
				Directory.SetCurrentDirectory(strCurrentDirectory);
			}

			return booCheck;
		}