protected function moveCoreFiles($downloadPath, $wildcard = '*.php')
	{
		$dir = realpath($downloadPath);
		$dst = dirname($dir);
		
		// Move the files up one level
		if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
		{
			shell_exec("move /Y $dir/$wildcard $dst/");
		}
		else
		{
			shell_exec("mv -f $dir/$wildcard $dst/");
		}
		
		// If there are no PHP files left in the package dir, remove the directory
		if (count(glob("$dir/*.php")) === 0)
		{
			if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
			{
				shell_exec("rd /S /Q $dir");
			}
			else
			{
				shell_exec("rm -Rf $dir");
			}
		}
	}
protected function moveCoreFiles($downloadPath, $wildcard = '*.php')
	{
		$dir = realpath($downloadPath);
		$dst = dirname($dir);
		
		// Move the files up one level
		if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
		{
			shell_exec("move /Y $dir/$wildcard $dst/");
		}
		else
		{
			shell_exec("mv -f $dir/$wildcard $dst/");
		}
		
		// If there are no PHP files left in the package dir, remove the directory
		if (count(glob("$dir/*.php")) === 0)
		{
			if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
			{
				shell_exec("rd /S /Q $dir");
			}
			else
			{
				shell_exec("rm -Rf $dir");
			}
		}
	}
protected function moveCoreFiles ( $ downloadPath , $ wildcard = '*.php' ) { $ dir = realpath ( $ downloadPath ) ; $ dst = dirname ( $ dir ) ; // Move the files up one level if ( strtoupper ( substr ( PHP_OS , 0 , 3 ) ) === 'WIN' ) { shell_exec ( "move /Y $dir/$wildcard $dst/" ) ; } else { shell_exec ( "mv -f $dir/$wildcard $dst/" ) ; } // If there are no PHP files left in the package dir, remove the directory if ( count ( glob ( "$dir/*.php" ) ) === 0 ) { if ( strtoupper ( substr ( PHP_OS , 0 , 3 ) ) === 'WIN' ) { shell_exec ( "rd /S /Q $dir" ) ; } else { shell_exec ( "rm -Rf $dir" ) ; } } }
Move files out of the package directory up one level

@var $downloadPath
@var $wildcard = '*.php'
Move files out of the package directory up one level