protected function setPath(string $path): string
	{
		if (! is_dir($path))
		{
			mkdir($path, 0777, true);
			//create the index.html file
			if (! is_file($path . 'index.html'))
			{
				$file = fopen($path . 'index.html', 'x+');
				fclose($file);
			}
		}
		return $path;
	}
protected function setPath(string $path): string
	{
		if (! is_dir($path))
		{
			mkdir($path, 0777, true);
			//create the index.html file
			if (! is_file($path . 'index.html'))
			{
				$file = fopen($path . 'index.html', 'x+');
				fclose($file);
			}
		}
		return $path;
	}
protected function setPath ( string $ path ) : string { if ( ! is_dir ( $ path ) ) { mkdir ( $ path , 0777 , true ) ; //create the index.html file if ( ! is_file ( $ path . 'index.html' ) ) { $ file = fopen ( $ path . 'index.html' , 'x+' ) ; fclose ( $ file ) ; } } return $ path ; }
create file target path if
the set path does not exist

@param string $path

@return string The path set or created.
create file target path if the set path does not exist