FANDOM


mkdir path

Creates a new directory.

path
The path to the new directory.

Pico-8's cartridge storage uses a hierarchical filesystem of directories that corresponds to that of the host operating system. The mkdir command makes a new directory that can contain files and other directories.

The path can be a relative path from the current working directory or an absolute path from the root of the storage area. The last part of the path is the name of the new directory. The name must not already exist (as a directory or a file), and the rest of the path must be to a directory that exists. See cd.

Caution: As of 0.1.6, the mkdir command does not report an error when the directory could not be created. Use the ls command to confirm that the directory was created successfully.

Note: There is no way to delete or rename a directory from the Pico-8 command prompt. If you're organizing your files, it's easier to use the folder command to open your operating system's file browser.

Examples Edit

> cd /
> mkdir projects

> cd projects
> mkdir squashy

> cd /
> mkdir projects/squashy

See also Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.