mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	@@ -50,6 +50,7 @@ const (
 | 
			
		||||
	metaKeyOpener                     = "opener"
 | 
			
		||||
	metaKeyIsOrdered                  = "isOrdered"
 | 
			
		||||
	metaKeyIsSymlink                  = "isSymlink"
 | 
			
		||||
	metaKeyJoinStat                   = "joinStat"
 | 
			
		||||
	metaKeySkipDir                    = "skipDir"
 | 
			
		||||
	metaKeyClassifier                 = "classifier"
 | 
			
		||||
	metaKeyTranslationBaseName        = "translationBaseName"
 | 
			
		||||
@@ -177,6 +178,14 @@ func (f FileMeta) Open() (afero.File, error) {
 | 
			
		||||
	return v.(func() (afero.File, error))()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (f FileMeta) JoinStat(name string) (FileMetaInfo, error) {
 | 
			
		||||
	v, found := f[metaKeyJoinStat]
 | 
			
		||||
	if !found {
 | 
			
		||||
		return nil, os.ErrNotExist
 | 
			
		||||
	}
 | 
			
		||||
	return v.(func(name string) (FileMetaInfo, error))(name)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (f FileMeta) stringV(key string) string {
 | 
			
		||||
	if v, found := f[key]; found {
 | 
			
		||||
		return v.(string)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user