Dir The Dir class provides methods for dealing with directories on the file system level, like creating, listing, moving, copying or evaluating directories etc. Full class name: Kirby\Filesystem\Dir Alias: Dir kirby/src/Filesystem/Dir.php#L30 Dir::copy() Dir::dirs() Dir::exists() Dir::files() Dir::index() Dir::isEmpty() Dir::isReadable() Dir::isWritable() Dir::link() Dir::make() Dir::modified() Dir::move() Dir::niceSize() Dir::read() Dir::remove() Dir::size() Dir::wasModifiedAfter() Examples Create a new directory Create a test folder in the document root of the website Dir::make($kirby->root('index') . '/test'); List all directories in the doc root dump(Dir::read($kirby->root('index'))); /* result Array ( [0] => .editorconfig [1] => README.md [2] => assets [3] => comments [4] => comments.zip [5] => composer.json [6] => content [7] => index.php [8] => kirby [9] => lab [10] => media [11] => site ) */