cancel
Showing results for 
Search instead for 
Did you mean: 

Directories

diarmaid-dohert
New Contributor
How would I go about creating a new directory inside the directory that I start q from? (MacOS).

Thanks
3 REPLIES 3

Cameron_McKee
New Contributor
Hi Diarmaid,

If you are just trying to create a directory that you are already in, where you started q, then the following should work:

\mkdir foo

If you are trying to create a directory in the folder where q is installed, then I think you can use:

\mkdir system["which q"],"/foo"

Regards,

Cameron

Hi Diarmaid,

Additionally, you could also use
system["mkdir ",a]
Where a is a variable with a string value that you would like the directory to be named.

Regards,
David

samsogade
New Contributor
You can also use \cd which will create a directory if it doesn't exists. It is also platform independent.