File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,11 @@ func ensurePath(srcpath, staticDir string) string {
111
111
}
112
112
return dir
113
113
}
114
+ func checkPath (dir string ) {
115
+ if _ , err := os .Stat (dir ); os .IsNotExist (err ) {
116
+ CheckError (err )
117
+ }
118
+ }
114
119
115
120
func main () {
116
121
flag .Parse ()
@@ -132,6 +137,15 @@ func main() {
132
137
fmt15 .Fmt15Format (nil )))))
133
138
log .Info ("======================> Webapp started" )
134
139
140
+ checkPath (options .StaticRoot )
141
+ checkPath (options .BrowseRoot )
142
+ checkPath (options .AppsRoot )
143
+ checkPath (options .ScionRoot )
144
+ checkPath (options .ScionBin )
145
+ checkPath (options .ScionGen )
146
+ checkPath (options .ScionGenCache )
147
+ checkPath (options .ScionLogs )
148
+
135
149
// prepare templates
136
150
templates = prepareTemplates (options .StaticRoot )
137
151
// open and manage database
You can’t perform that action at this time.
0 commit comments