When I access any folder with a parenthesis in the folder name, I get an error that the path doesn't exist. I assume it is a url encoding problem, but when I encode the URL it only encodes the spaces in the path and not the parentheses. Also encoding the URL makes the path of any other folder name fail.
Is there a work around to getting to folders with parentheses in the name?
Here is my code snippet:
const folderName = req.body.title;
const path = `/${folderName}`;
const dbx = new Dropbox({ accessToken: process.env.DROPBOX_ACCESS_TOKEN });
dbx.filesListFolder({ path })
.then(response => {
const entries = response.result.entries;
res.send(response.result.entries)
})