diff options
Diffstat (limited to 'docs/content/en/functions/fileExists.md')
-rw-r--r-- | docs/content/en/functions/fileExists.md | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/docs/content/en/functions/fileExists.md b/docs/content/en/functions/fileExists.md index 2175453de..5a365b7c1 100644 --- a/docs/content/en/functions/fileExists.md +++ b/docs/content/en/functions/fileExists.md @@ -1,22 +1,14 @@ --- -title: "fileExists" -linktitle: "fileExists" -date: 2017-08-31T22:38:22+02:00 +title: fileExists description: Checks for file or directory existence. -publishdate: 2017-08-31T22:38:22+02:00 -lastmod: 2021-11-26 categories: [functions] menu: docs: - parent: "functions" + parent: functions signature: ["os.FileExists PATH","fileExists PATH"] -workson: [] -hugoversion: relatedfuncs: ['os.ReadDir','os.ReadFile','os.Stat'] -deprecated: false -aliases: [] --- -The `os.FileExists` function attempts to resolve the path relative to the root of your project directory. If a matching file or directory is not found, it will attempt to resolve the path relative to the [`contentDir`]({{< relref "getting-started/configuration#contentdir">}}). A leading path separator (`/`) is optional. +The `os.FileExists` function attempts to resolve the path relative to the root of your project directory. If a matching file or directory is not found, it will attempt to resolve the path relative to the [`contentDir`](/getting-started/configuration#contentdir). A leading path separator (`/`) is optional. With this directory structure: |