Returns a FileInfo structure describing a file or directory.
2018-08-07
2018-08-07
2021-11-26
functions
docs
parent
functions
files
os.Stat PATH
os.FileExists
os.ReadDir
os.ReadFile
false
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.