> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# isfile

Returns `true` if `path` is an existing file inside Seliware's workspace folder, `false` otherwise.

```luau theme={null}
isfile(path: string): boolean
```

`path` is workspace-relative. The check is safe on any string - non-existent paths and folder paths both return `false` rather than raising an error.

## Parameters

| Parameter | Type     | Description        |
| --------- | -------- | ------------------ |
| `path`    | `string` | Location to check. |

## Returns

`boolean` - `true` only if `path` resolves to a file. Returns `false` for folders, broken paths, and anything that doesn't exist.

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  local exists = isfile("hello.txt")
  =======
  -- isfile(path: string): boolean
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  print(isfile("config.json"))
  ```
</CodeGroup>

<Tip>
  Paths are relative to the executor's dedicated sandbox workspace directory.
</Tip>
