public function set_cwd( $cwd ) {

		$file = $this->get_file( $cwd );

		if ( false === $file || 'dir' !== $file->type ) {
			return false;
		}

		$this->cwd = $this->normalize_path( $cwd );

		if ( empty( $this->cwd ) ) {
			$this->cwd = '/';
		}

		return true;
	}
public function set_cwd( $cwd ) {

		$file = $this->get_file( $cwd );

		if ( false === $file || 'dir' !== $file->type ) {
			return false;
		}

		$this->cwd = $this->normalize_path( $cwd );

		if ( empty( $this->cwd ) ) {
			$this->cwd = '/';
		}

		return true;
	}
public function set_cwd ( $ cwd ) { $ file = $ this -> get_file ( $ cwd ) ; if ( false === $ file || 'dir' !== $ file -> type ) { return false ; } $ this -> cwd = $ this -> normalize_path ( $ cwd ) ; if ( empty ( $ this -> cwd ) ) { $ this -> cwd = '/' ; } return true ; }
Set the current working directory.

@since 0.1.0

@param string $cwd The path to the new working directory.

@return bool True if the current working directory was set, false otherwise.
Set the current working directory .