We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41947e2 commit 9676902Copy full SHA for 9676902
devices/linux-client/actions/file_store.go
@@ -5,10 +5,12 @@ import (
5
"errors"
6
"io/ioutil"
7
"os"
8
+ "path"
9
"path/filepath"
10
"strconv"
11
"sync"
12
13
+ log "github.com/sirupsen/logrus"
14
"golang.org/x/sync/semaphore"
15
)
16
@@ -136,6 +138,8 @@ func (q *FileStore) Reload() error {
136
138
var item FileBlob
137
139
idx, err := q.idxFromPath(file.Name())
140
if err != nil {
141
+ log.Warnln("Unparsable file found in FileStore directory:", path.Join(q.rootDir, file.Name()))
142
+ log.Warnln("FileStore may be pointing to a directory containing files not created by it, this is not allowed.")
143
continue
144
}
145
0 commit comments