Re: Getting the name of file-like objects

2022-04-05 Thread Ludovic Courtès
Hi, Maxime Devos skribis: > computed-file-name, local-file-name, package-name ... I don't think > there's some generic procedure for this. IWBN to address that and have a generic procedure, somehow. Ludo’.

Re: Getting the name of file-like objects

2022-04-02 Thread Liliana Marie Prikler
Hi Justin Am Freitag, dem 01.04.2022 um 16:29 -0400 schrieb Justin Veilleux: >  Hi everyone. I'm currently writing a set of helper functions > (usually written using `computed-file`  which act on file like > objects to transform them in some way. > For instance, I have a `decompress` function whic

Re: Getting the name of file-like objects

2022-04-02 Thread Maxime Devos
Justin Veilleux schreef op vr 01-04-2022 om 16:29 [-0400]: > (define (unzip f) >   (computed-file (string-append (name f) "-unzipped") > #~(begin > (system* (string-append #$unzip "/bin/unzip") (unrelated) you can do #+(file-append unzip "/bin/unzip") here. The 'file-append' is not ve

Getting the name of file-like objects

2022-04-01 Thread Justin Veilleux
Hi everyone. I'm currently writing a set of helper functions (usually written using `computed-file`  which act on file like objects to transform them in some way. For instance, I have a `decompress` function which, given a file-like object pointing to an archive, will return a computed file obje