Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-datastore
Commits
03e56262
Commit
03e56262
authored
Jul 05, 2016
by
Jeromy Johnson
Committed by
GitHub
Jul 05, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #45 from ipfs/feat/demote-to-warning
flatfs: dont error out Walk in case of FileNotFound error
parents
f6dfcbd0
312a1177
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
flatfs/flatfs.go
flatfs/flatfs.go
+3
-0
No files found.
flatfs/flatfs.go
View file @
03e56262
...
@@ -313,6 +313,9 @@ func (fs *Datastore) Query(q query.Query) (query.Results, error) {
...
@@ -313,6 +313,9 @@ func (fs *Datastore) Query(q query.Query) (query.Results, error) {
go
func
()
{
go
func
()
{
defer
close
(
reschan
)
defer
close
(
reschan
)
err
:=
filepath
.
Walk
(
fs
.
path
,
func
(
path
string
,
info
os
.
FileInfo
,
err
error
)
error
{
err
:=
filepath
.
Walk
(
fs
.
path
,
func
(
path
string
,
info
os
.
FileInfo
,
err
error
)
error
{
if
os
.
IsNotExist
(
err
)
{
return
nil
}
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Errorf
(
"Walk func in Query got error: %v"
,
err
)
log
.
Errorf
(
"Walk func in Query got error: %v"
,
err
)
return
err
return
err
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment