mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Renmae FileStat Stat
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
c362634b7d
commit
d40116e5f9
@@ -131,8 +131,8 @@ func (ns *Namespace) FileExists(i interface{}) (bool, error) {
|
||||
return status, nil
|
||||
}
|
||||
|
||||
// FileStat Stat returns the os.FileInfo structure describing file.
|
||||
func (ns *Namespace) FileStat(i interface{}) (_os.FileInfo, error) {
|
||||
// Stat returns the os.FileInfo structure describing file.
|
||||
func (ns *Namespace) Stat(i interface{}) (_os.FileInfo, error) {
|
||||
path, err := cast.ToStringE(i)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user