mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	Pass directory name to filters in LstatIfPossible in the same way as Readdir
This commit is contained in:
		
				
					committed by
					
						
						Bjørn Erik Pedersen
					
				
			
			
				
	
			
			
			
						parent
						
							52c159c452
						
					
				
				
					commit
					cc2a5d52a4
				
			@@ -153,7 +153,8 @@ func (fs *FilterFs) LstatIfPossible(name string) (os.FileInfo, bool, error) {
 | 
			
		||||
		return decorateFileInfo(fi, fs, fs.getOpener(name), "", "", nil), false, nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	fs.applyFilters(name, -1, fi)
 | 
			
		||||
	parent := filepath.Dir(name)
 | 
			
		||||
	fs.applyFilters(parent, -1, fi)
 | 
			
		||||
 | 
			
		||||
	return fi, b, nil
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user