---
title: "isfolder"
description: "Checks whether a path exists as a folder."
---

```lua
isfolder(path: string? = ""): boolean
```

---

## Aliases

None.

---

## Arguments

<ParamField body="path" type="string" default={"\"\""}>
  A UTF-8 path relative to the Byte workspace.
</ParamField>

---

## Returns

<ResponseField name="result" type="boolean">
  Whether the queried condition holds.
</ResponseField>

Missing paths return false; empty/nil path addresses the workspace root.

**Related types:** [Filesystem types & behavior](/reference/filesystem/types).

---

## Example

```lua
print(isfolder(), isfolder("docs-example"))
```
