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

					const path = this.#safeName(filename);

					sftp.lsDir(
						path,
						(res) => {
							res.forEach((file) => {
								file.url = Url.join(this.#base, file.url);
								file.type = mimeType.lookup(filename);
								if (file.isLink) {
									file.linkTarget = Url.join(this.#base, file.linkTarget);
								}
							});
							resolve(res);
						},
						(err) => {
							reject(err);
						},
					);
				})();
			}, reject);
		});
	}
List directory or get file info
@param {String} filename
@param {boolean} stat