docs: function isValidPath(path, allowDots)
  	{
  		if (typeof path !== 'string')
  			return false;
  		if (!path)
  			return false;
  		if (!/^([a-z]:[\/\\])?[a-z0-9_~\/\.\-]+$/i.test(path))
  			return false;
  		if (!allowDots && /^\.{1,2}$/.test(path))
  			return false;
  
  		return true;
  	}