Skip to content

Commit

Permalink
Merge pull request #45 from ipfs/feat/demote-to-warning
Browse files Browse the repository at this point in the history
flatfs: dont error out Walk in case of FileNotFound error
  • Loading branch information
whyrusleeping committed Jul 5, 2016
2 parents f6dfcbd + 312a117 commit 03e5626
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flatfs/flatfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ 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 os.IsNotExist(err) {
return nil
}
if err != nil {
log.Errorf("Walk func in Query got error: %v", err)
return err
Expand Down

0 comments on commit 03e5626

Please sign in to comment.