Re: pathname with tilde and wildcard characters

Michał "phoe" Herda via Sbcl-help <[email protected]>
Newsgroups gmane.lisp.steel-bank.general
Message-ID <[email protected]>
CL-USER> (open #p"~/tmp/test-\\?\\?-file" :if-does-not-exist :create)
#<SB-SYS:FD-STREAM for "file /home/phoe/tmp/test-??-file" {100923F3A3}>

On 5.06.2024 23:21, Peter Münster wrote:
> Hi,
>
> What would be the best method, to open a file with "~/" (for the home
> directory) and wildcard characters in its name please?
>
> I’ve tried (open "~/tmp/test-??-file") and
> (open (parse-native-namestring "~/tmp/test-??-file")), but both result
> in errors.
>
> Of course, I could parse the string and translate "~/" or the wildcard
> characters. But I would like to know, if there is already a better
> solution in SBCL.
>
> TIA for any help,


_______________________________________________
Sbcl-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sbcl-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.