# Directories
{id: directories}

## List directory content
{id: list-directory}
{i: Dir}

![](examples/filesystem/list_dir.cr)

## List directory tree
{id: directory-tree}
{i: Dir}
{i: glob}
![](examples/filesystem/traverse_tree.cr)

## Get Current working directory (cwd, pwd)
{id: current-working-directory}

![](examples/filesystem/cwd.cr)

## Temporary directory
{id: temporary-directory}
{i: tempname}
{i: tempdir}
{i: file_utils}
{i: FileUtils}
{i: rm_rf}
{i: cd}

![](examples/filesystem/tempdir.cr)

## Tempdir function
{id: tempdir}

![](examples/filesystem/tempdir_function.cr)

## Join / concatenate file system path
{id: join-file-system-path}
{i: Path}

* [Path](https://crystal-lang.org/api/Path.html)

![](examples/filesystem/path.cr)

## Join / concatenate file system path
{id: concatenate-file-system-path}
{i: Path}
{i: /}

![](examples/filesystem/concatenate_path.cr)

## Path from string
{id: path}

![](examples/filesystem/path_from_string.cr)


## Expand Path
{id: expand-path}
{i: expand}
{i: ~}

![](examples/filesystem/path_expand.cr)
![](examples/filesystem/path_expand.out)


