[CM] How to create directory programmatically?
Kenneth Flak
kennethflak at protonmail.com
Fri Aug 2 07:00:54 PDT 2024
Very nice! Very useful to be able to call system commands directly
from Scheme...
Best,
Kenneth
"Kjetil Matheussen" <k.s.matheussen at gmail.com> writes:
> On Thu, Aug 1, 2024 at 4:01 PM Kenneth Flak
> <kennethflak at protonmail.com> wrote:
>>
>>
>> Hi,
>>
>> How can I create a directory programmatically? I have this (dir
>> is
>> defined earlier in the code):
>>
>> (if (not (directory? dir))
>> (make-directory dir))
>>
>> but make-directory is, unfortunately, not an S7 function.¨
>
> Don't know if it's programmatically enough, but this should
> work:
>
> (system (string-append "mkdir " dir))
--
Roosna & Flak - Contemporary Dance & Music
Web: roosnaflak.com
Code: {github,gitlab,codeberg}.com/kflak
Mastodon: @kf at sonomu.club"
More information about the Cmdist
mailing list