# Config File Exists

Check whether a configuration file exists.

### Parameters

* `config_file` (str): The file to check for existence.

### Returns

* `bool`: `True` if the file exists, `False` if it does not.

### Example

<pre class="language-python"><code class="lang-python"><strong>import pysettings_manager as pysm
</strong><strong>exists = pysm.config_file_exists("settings.json")
</strong>if exists:
    print("Settings file found")
else:
    print("Settings file not found")
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sryu1.gitbook.io/pysettings-manager/config-file-exists.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
