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)$MoreSystemCommands
> 
> . Is there a more OS-independent way to create a directory?

There is a Lisp helper function 'makedir'.  Use like:

makedir("foo.dir")$Lisp

ATM there is no Spad wrapper for this.

-- 
                              Waldek Hebisch

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/ZkUw3h9TkXi4i6Qw%40fricas.org.

Reply via email to