lib/scanner: Support walking a symlink root (ref #4353)
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4666 LGTM: AudriusButkevicius, imsodin
This commit is contained in:
committed by
Audrius Butkevicius
parent
885e3f19bd
commit
a505231774
@@ -31,6 +31,10 @@ func (i infiniteFS) Lstat(name string) (fs.FileInfo, error) {
|
||||
return fakeInfo{name, i.filesize}, nil
|
||||
}
|
||||
|
||||
func (i infiniteFS) Stat(name string) (fs.FileInfo, error) {
|
||||
return fakeInfo{name, i.filesize}, nil
|
||||
}
|
||||
|
||||
func (i infiniteFS) DirNames(name string) ([]string, error) {
|
||||
// Returns a list of fake files and directories. Names are such that
|
||||
// files appear before directories - this makes it so the scanner will
|
||||
|
||||
Reference in New Issue
Block a user