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;
	}