> For the complete documentation index, see [llms.txt](https://sryu1.gitbook.io/pysettings-manager/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sryu1.gitbook.io/pysettings-manager/config-file-exists.md).

# Config File Exists

config\_file\_exists function

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>
