mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
@@ -45,7 +45,6 @@ func NewSliceFs(dirs ...FileMetaInfo) (afero.Fs, error) {
|
||||
}
|
||||
|
||||
return fs, nil
|
||||
|
||||
}
|
||||
|
||||
// SliceFs is an ordered composite filesystem.
|
||||
@@ -63,7 +62,6 @@ func (fs *SliceFs) Chtimes(n string, a, m time.Time) error {
|
||||
|
||||
func (fs *SliceFs) LstatIfPossible(name string) (os.FileInfo, bool, error) {
|
||||
fi, _, err := fs.pickFirst(name)
|
||||
|
||||
if err != nil {
|
||||
return nil, false, err
|
||||
}
|
||||
@@ -73,7 +71,6 @@ func (fs *SliceFs) LstatIfPossible(name string) (os.FileInfo, bool, error) {
|
||||
}
|
||||
|
||||
return nil, false, errors.Errorf("lstat: files not supported: %q", name)
|
||||
|
||||
}
|
||||
|
||||
func (fs *SliceFs) Mkdir(n string, p os.FileMode) error {
|
||||
@@ -103,7 +100,6 @@ func (fs *SliceFs) Open(name string) (afero.File, error) {
|
||||
idx: idx,
|
||||
dirname: name,
|
||||
}, nil
|
||||
|
||||
}
|
||||
|
||||
func (fs *SliceFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error) {
|
||||
@@ -222,7 +218,6 @@ func (fs *SliceFs) readDirs(name string, startIdx, count int) ([]os.FileInfo, er
|
||||
}
|
||||
|
||||
return dirs, nil
|
||||
|
||||
}
|
||||
|
||||
type sliceDir struct {
|
||||
|
Reference in New Issue
Block a user