Using dbutils.fs.ls on URI with square brackets results in error

Josh_Stafford
New Contributor II

Square brackets in ADLS are accepted, so why can't I list the files in the folder? I have tried escaping the square brackets manually, but then the escaped values are re-escaped from %5B to %255B and %5D to %255D.

I get:

URISyntaxException: Illegal character in path at index 188: abfss://container-name@***[***]***/

Actual path replaced by ***.