少于1分钟
将以下英文翻译为中文:
https://gohugo.io/functions/os.stat/
Returns a FileInfo structure describing a file or directory.
os.Stat PATH
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
. A leading path separator (/
) is optional.
|
|
Details of the FileInfo
structure are available in the Go documentation.