Re: Handling files with problem characters in their names?
Stas Boukarev <[email protected]> Fri, 20 Dec 2024 22:27:55 +0300
| Newsgroups | gmane.lisp.steel-bank.general |
|---|---|
| Message-ID | <CAF63=13qfpYRF5vsoj4Had3q2MatvH3f4jJumwCMs=X81beJdg@mail.gmail.com> |
sb-ext:parse-native-namestring On Fri, Dec 20, 2024 at 10:13 PM Jeff Cunningham <[email protected]> wrote: > > 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 _______________________________________________ Sbcl-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sbcl-help