You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: agent/data/client.go
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@
14
14
package data
15
15
16
16
import (
17
+
"fmt"
18
+
"os"
17
19
"path/filepath"
18
20
"sync"
19
21
@@ -39,6 +41,7 @@ const (
39
41
resAttachmentsBucketName="resattachments"
40
42
metadataBucketName="metadata"
41
43
emptyAgentVersionMsg="No version info available in boltDB. Either this is a fresh instance, or we were using state file to persist data. Transformer not applicable."
44
+
notDirectoryErrorMsg="path %s is not a valid directory"
42
45
)
43
46
44
47
var (
@@ -53,6 +56,7 @@ var (
53
56
resAttachmentsBucketName,
54
57
metadataBucketName,
55
58
}
59
+
dirExists=checkDirectoryExists
56
60
)
57
61
58
62
// Client specifies the data management interface to persist and manage various kinds of data in the agent.
0 commit comments