On Wed, May 15, 2024 at 11:32:04PM +0200, Ralf Hemmecke wrote:
> For a given fn of type FileName I cannot simply say
>
> fh := open(fn, "output")
>
> if the folder directory(fn) does not yet exist.
> I haven't found any other way than using
>
> systemCommand("system mkdir -p " directory fn)$
For a given fn of type FileName I cannot simply say
fh := open(fn, "output")
if the folder directory(fn) does not yet exist.
I haven't found any other way than using
systemCommand("system mkdir -p " directory fn)$MoreSystemCommands
. Is there a more OS-independent way to create a directory