PathNames and Special Characters

Hi all -

I have noticed that PathNames will not register as valid, if there are special characters. For example:

//works
~x = PathName("/Users/okf/Desktop/bo/")
~x.files;

//doesn't work
~x = PathName("/Users/okf/Desktop/b[o]/")
~x.files;

Normally, I would deal with this by creating a conditional around ~x returning nil - but if I am collecting from nested folders within folders, I think the process aborts as soon as an unusual folder name is struck.

Is there any way around this?

Cheers.

I believe this bug has been reported and confirmed per PathName consumes glob characters implicitly · Issue #6139 · supercollider/supercollider · GitHub

Unfortunately, I don’t believe the double-escaping workaround shared works in your example AFAICT

1 Like