Arc Forumnew | comments | leaders | submitlogin
2 points by ecmanaut 6123 days ago | link | parent

The mkdir -f in arc.arc's ensure-dir does not work on MacOS X, where the syntax is mkdir -p -- so the (asv) example in the tutorial fails.


3 points by pg 6123 days ago | link

Anyone know what I should use to work in the maximum number of OSes?

-----

3 points by ecmanaut 6123 days ago | link

Any specific reason not to use (make-directory) instead of (system "mkdir ...") and let scheme handle the portability? http://download.plt-scheme.org/doc/372/html/mzscheme/mzschem...

-----

1 point by CatDancer 6122 days ago | link

Rather bizarrely, on my Linux system at least, make-directory is creating directories with the sticky bit set... and I didn't see anywhere in the MzScheme's manual a way to set the umask. Perhaps someone else will have better luck.

If this can be fixed, the make-directory* function in the MzScheme file.ss library will usefully create intervening directories, like mkdir -p does.

-----

3 points by elibarzilay 6121 days ago | link

That was fixed in version 371.

-----

1 point by CatDancer 6122 days ago | link

mkdir -p

-----