> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/syntax_and_semantics/literals/dir.md).

# Dir

The Dir object represents the name of a local directory:

```ruby
Dir("/my/path")
```

Alternatively:

```ruby
%d(/my/path)
%d(/my)+%d(path)
```

See the [DirHandle](/sidef-lang/syntax_and_semantics/literals/dirhandle.md) documentation for more information.
