rename(newname, move) {
		const src = this.#path;
		return new Promise((resolve, reject) => {
			sftp.isConnected((connectionID) => {
				(async () => {
					if (this.#notConnected(connectionID)) {
						try {
							await this.connect();
						} catch (error) {
							reject(error);
							return;
						}
					}

					newname = move ? newname : Path.join(Path.dirname(src), newname);
					sftp.rename(
						this.#safeName(src),
						this.#safeName(newname),
						async (_res) => {
							const url = move ? Url.join(newname, Url.basename(src)) : newname;
							resolve(Url.join(this.#base, url));
						},
						(err) => {
							reject(err);
						},
					);
				})();
			}, reject);
		});
	}
Renames file and directory, it can also be use to move directory or file
@param {String} newname
@param {Boolean} move