public function mkDirRecursive($dir)
	{
		$parts = explode('/', $dir);
		$path = '';
		while (!empty($parts)) {
			$path .= array_shift($parts);
			try {
				if ($path !== '') $this->mkdir($path);
			} catch (FtpException $e) {
				if (!$this->isDir($path)) {
					throw new FtpException("Cannot create directory '$path'.");
				}
			}
			$path .= '/';
		}
	}
public function mkDirRecursive($dir)
	{
		$parts = explode('/', $dir);
		$path = '';
		while (!empty($parts)) {
			$path .= array_shift($parts);
			try {
				if ($path !== '') $this->mkdir($path);
			} catch (FtpException $e) {
				if (!$this->isDir($path)) {
					throw new FtpException("Cannot create directory '$path'.");
				}
			}
			$path .= '/';
		}
	}
public function mkDirRecursive ( $ dir ) { $ parts = explode ( '/' , $ dir ) ; $ path = '' ; while ( ! empty ( $ parts ) ) { $ path .= array_shift ( $ parts ) ; try { if ( $ path !== '' ) $ this -> mkdir ( $ path ) ; } catch ( FtpException $ e ) { if ( ! $ this -> isDir ( $ path ) ) { throw new FtpException ( "Cannot create directory '$path'." ) ; } } $ path .= '/' ; } }
Recursive creates directories.
@param  string
@return void
Recursive creates directories .