# mkdir

## Synopsis

• Usage:
mkdir p
• Inputs:
• p, , a path to a directory to be made
• Consequences:
• a directory will be created at the path p

## Description

Only one directory will be made, so the components of the path p other than the last must already exist.

 i1 : p = temporaryFileName() | "/" o1 = /tmp/M2-77571-0/0/ i2 : mkdir p i3 : isDirectory p o3 = true i4 : (fn = p | "foo") << "hi there" << close o4 = /tmp/M2-77571-0/0/foo o4 : File i5 : get fn o5 = hi there i6 : removeFile fn i7 : removeDirectory p

A filename starting with ~/ will have the tilde replaced by the home directory.