"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "source/filesystem.go" between
hugo-0.85.0.tar.gz and hugo-0.86.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

filesystem.go  (hugo-0.85.0):filesystem.go  (hugo-0.86.0)
skipping to change at line 83 skipping to change at line 83
walker := func(path string, fi hugofs.FileMetaInfo, err error) error { walker := func(path string, fi hugofs.FileMetaInfo, err error) error {
if err != nil { if err != nil {
return err return err
} }
if fi.IsDir() { if fi.IsDir() {
return nil return nil
} }
meta := fi.Meta() meta := fi.Meta()
filename := meta.Filename() filename := meta.Filename
b, err := f.shouldRead(filename, fi) b, err := f.shouldRead(filename, fi)
if err != nil { if err != nil {
return err return err
} }
if b { if b {
err = f.add(filename, fi) err = f.add(filename, fi)
} }
skipping to change at line 108 skipping to change at line 108
Fs: f.SourceFs, Fs: f.SourceFs,
Info: f.fi, Info: f.fi,
Root: f.Base, Root: f.Base,
WalkFn: walker, WalkFn: walker,
}) })
return w.Walk() return w.Walk()
} }
func (f *Filesystem) shouldRead(filename string, fi hugofs.FileMetaInfo) (bool, error) { func (f *Filesystem) shouldRead(filename string, fi hugofs.FileMetaInfo) (bool, error) {
ignore := f.SourceSpec.IgnoreFile(fi.Meta().Filename()) ignore := f.SourceSpec.IgnoreFile(fi.Meta().Filename)
if fi.IsDir() { if fi.IsDir() {
if ignore { if ignore {
return false, filepath.SkipDir return false, filepath.SkipDir
} }
return false, nil return false, nil
} }
if ignore { if ignore {
return false, nil return false, nil
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)