-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix write database in built version
- Loading branch information
Nicolas Choquet
committed
Mar 22, 2024
1 parent
14bb5b1
commit d7450dd
Showing
6 changed files
with
87 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package database | ||
|
||
import "os" | ||
|
||
var prodPath = func() string { | ||
path := "/etc/filesystem-service" | ||
_, err := os.Stat(path) | ||
if err != nil { | ||
_ = os.MkdirAll(path, 0777) | ||
} | ||
return path | ||
}() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package database | ||
|
||
import "os" | ||
|
||
var prodPath = func() string { | ||
path := "/etc/filesystem-service" | ||
_, err := os.Stat(path) | ||
if err != nil { | ||
_ = os.MkdirAll(path, 0777) | ||
} | ||
return path | ||
}() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package database | ||
|
||
import "os" | ||
|
||
var prodPath = func() string { | ||
path := "C://Program Files/filesystem-service" | ||
_, err := os.Stat(path) | ||
if err != nil { | ||
_ = os.MkdirAll(path, 0777) | ||
} | ||
return path | ||
}() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters