Handling files with problem characters in their names?
Jeff Cunningham <[email protected]> Fri, 20 Dec 2024 13:43:12 -0500
| Newsgroups | gmane.lisp.steel-bank.general |
|---|---|
| Message-ID | <20241220134312.302e153d@Isabelle> |
What is the best way to handle files whose names contain characters that break functions like FILE-LENGTH, NAMESTRING, and OPEN? I keep running into this problem where I have large numbers of files from external sources - I have no control over how they are named and shouldn't change their names. Here's an example: "file with [brackets].txt" The pathname functions think it's a wildcard specification. I can escape the left-bracket it to work with most of those, but that doesn't work. Here's another example: "राम.txt" I keep coming up with adhoc solutions but I'm wondering how better programmers handle this? Thanks. -- Jeff _______________________________________________ Sbcl-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sbcl-help