client = new SFTP($config->host, $config->port); $this->client->login($config->username, $config->password); } public function upload(string $local, string $remote): bool { return $this->client->put($remote, $local, SFTP::SOURCE_LOCAL_FILE); } public function delete(string $remote): bool { return $this->client->delete($remote); } public function exists(string $remote): bool { return $this->client->file_exists($remote); } public function mkdir(string $remote): bool { return $this->client->mkdir($remote, true); } public function chmod(string $path, int $permissions): bool { return $this->client->chmod($permissions, $path); } }