Commit 0a5df4f4 authored by Jeromy Johnson's avatar Jeromy Johnson Committed by GitHub

Merge pull request #7 from ipfs/feature/log-flatfs-error

Log errors in Walk function
parents 7d8cb311 e8263c6d
......@@ -319,6 +319,10 @@ func (fs *Datastore) Query(q query.Query) (query.Results, error) {
go func() {
defer close(reschan)
err := filepath.Walk(fs.path, func(path string, info os.FileInfo, err error) error {
if err != nil {
log.Errorf("Walk func in Query got error: %v", err)
return err
}
if !info.Mode().IsRegular() || strings.HasPrefix(info.Name(), ".") {
return nil
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment