diff options
Diffstat (limited to 'docs/content/en/functions/os.Stat.md')
-rw-r--r-- | docs/content/en/functions/os.Stat.md | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/docs/content/en/functions/os.Stat.md b/docs/content/en/functions/os.Stat.md index a56f79735..9ace3b8bf 100644 --- a/docs/content/en/functions/os.Stat.md +++ b/docs/content/en/functions/os.Stat.md @@ -1,22 +1,15 @@ --- title: os.Stat description: Returns a FileInfo structure describing a file or directory. -date: 2018-08-07 -publishdate: 2018-08-07 -lastmod: 2021-11-26 categories: [functions] menu: docs: - parent: "functions" + parent: functions keywords: [files] signature: ["os.Stat PATH"] -workson: [] -hugoversion: relatedfuncs: ['os.FileExists','os.ReadDir','os.ReadFile'] -deprecated: false -aliases: [] --- -The `os.Stat` 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.Stat` 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. ```go-html-template {{ $f := os.Stat "README.md" }} |