Revert "GODT-2229: Allow changing cache folder to a non-empty folder."

This reverts commit b19e16e4b8.
This commit is contained in:
Jakub
2023-01-11 10:19:38 +01:00
parent 606a8f134d
commit 715efaa087
15 changed files with 63 additions and 187 deletions

View File

@ -148,17 +148,6 @@ func (l *Locations) ProvideGluonPath() (string, error) {
return l.getGluonPath(), nil
}
// ProvideGluonDatabasePath returns a location for gluon database.
// It creates it if it doesn't already exist.
func (l *Locations) ProvideGluonDatabasePath() (string, error) {
dbPath := filepath.Join(l.userData, "gluonDB")
if err := os.MkdirAll(dbPath, 0o700); err != nil {
return "", err
}
return dbPath, nil
}
// ProvideLogsPath returns a location for user logs (e.g. ~/.local/share/<company>/<app>/logs).
// It creates it if it doesn't already exist.
func (l *Locations) ProvideLogsPath() (string, error) {