I have a program that needs to create a directory into which I later write a bunch of files. I just used mkdir=: 1!:5@< . However, sometimes the directory already exists, which results in an error. I would like to just have the program continue if the directory exists. It is probably obvious,
but how do you check whether a directory exists?
A different issue: I have a program which creates and uses huge arrays. I have to limit the size because when the program starts to swap data to the drive things slow to a crawl. But worse, if the size is too large and I try to amend an array ( a b}c), J crashes the machine -- no out of memory error, no exiting J, but the Ubuntu equivalent of "the blue screen of death" telling me to reboot the machine. Is this expected behavior?
"Thank you for your attention." :-)
Patrick