mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Add configFilePath and scrapersPath to configuration query (#1205)
This commit is contained in:
@@ -146,6 +146,10 @@ func GetConfigPath() string {
|
||||
return filepath.Dir(configFileUsed)
|
||||
}
|
||||
|
||||
func GetConfigFilePath() string {
|
||||
return viper.ConfigFileUsed()
|
||||
}
|
||||
|
||||
func GetStashPaths() []*models.StashConfig {
|
||||
var ret []*models.StashConfig
|
||||
if err := viper.UnmarshalKey(Stash, &ret); err != nil || len(ret) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user