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

# isfile

> Returns whether a path resolved inside the workspace exists and is a regular file.

<div className="real-function-page">
  ```lua theme={null}
  isfile(path: string): boolean
  ```

  ## Argumentos

  <ParamField path={"path"} type={"string"} required>
    Path resolved inside the workspace after separator normalization and workspace-boundary checks. Invalid or outside-workspace paths error before a boolean is returned.
  </ParamField>

  ## Retornos

  <ResponseField name={"isFile"} type={"boolean"}>
    True only when the resolved path exists and is a regular file; folders and missing paths return false.
  </ResponseField>

  ## Exemplo

  Verifique se um workspace path resolve para um regular file existente.

  ```lua theme={null}
  local folderPath = "examples"
  local filePath = "examples/config.json"

  makefolder(folderPath)
  writefile(filePath, "{}")

  print(isfile(filePath))
  print(isfile(folderPath))
  print(isfile("examples/missing.json"))
  ```
</div>
