mirror of
https://github.com/v2fly/domain-list-community.git
synced 2024-11-16 17:14:52 +02:00
Fix: create multiple level path (#431)
This commit is contained in:
parent
aba4e341f7
commit
584886fb9e
5
main.go
5
main.go
@ -329,7 +329,10 @@ func main() {
|
||||
|
||||
// Create output directory if not exist
|
||||
if _, err := os.Stat(*outputDir); os.IsNotExist(err) {
|
||||
os.Mkdir(*outputDir, 0755)
|
||||
if mkErr := os.MkdirAll(*outputDir, 0755); mkErr != nil {
|
||||
fmt.Println("Failed: ", mkErr)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
protoList := new(router.GeoSiteList)
|
||||
|
Loading…
Reference in New Issue
Block a user