summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/os/FileExists.md
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2025-04-10 13:04:51 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2025-04-10 13:04:51 +0200
commit653f1c1d462332bccf303a5040e5cd99c89a4378 (patch)
treec993984f169a240567526e9993261241c0cda771 /docs/content/en/functions/os/FileExists.md
parent208a0de6c31354df6f9463d49e90db9dec935169 (diff)
parent5be51ac3db225d5df501ed1fa1499c41d97dbf65 (diff)
downloadhugo-653f1c1d462332bccf303a5040e5cd99c89a4378.tar.gz
hugo-653f1c1d462332bccf303a5040e5cd99c89a4378.zip
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
Diffstat (limited to 'docs/content/en/functions/os/FileExists.md')
-rw-r--r--docs/content/en/functions/os/FileExists.md16
1 files changed, 6 insertions, 10 deletions
diff --git a/docs/content/en/functions/os/FileExists.md b/docs/content/en/functions/os/FileExists.md
index b8104a066..b8a01a3e7 100644
--- a/docs/content/en/functions/os/FileExists.md
+++ b/docs/content/en/functions/os/FileExists.md
@@ -3,19 +3,15 @@ title: os.FileExists
description: Reports whether the file or directory exists.
categories: []
keywords: []
-action:
- aliases: [fileExists]
- related:
- - functions/os/Getenv
- - functions/os/ReadDir
- - functions/os/ReadFile
- - functions/os/Stat
- returnType: bool
- signatures: [os.FileExists PATH]
+params:
+ functions_and_methods:
+ aliases: [fileExists]
+ returnType: bool
+ signatures: [os.FileExists PATH]
aliases: [/functions/fileexists]
---
-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.
+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`](/configuration/all/#contentdir). A leading path separator (`/`) is optional.
With this directory structure: