config-files: Move all the configuration files into config folder. (#508)

This commit moves all the configuration(.json) files into a config folder
if the config folder doesn't already exist. It also updates the places
where these files are being accessed with the new address.
This will help us zip the folder easily in the future.
This commit is contained in:
Abhigyan Khaund
2018-07-04 14:46:13 +05:30
committed by Akash Nimare
parent eeb0b4a666
commit df35ffc3b0
7 changed files with 48 additions and 6 deletions

View File

@@ -64,7 +64,7 @@ class CertificateUtil {
this.reloadDB();
}
reloadDB() {
const settingsJsonPath = path.join(app.getPath('userData'), '/certificates.json');
const settingsJsonPath = path.join(app.getPath('userData'), '/config/certificates.json');
try {
const file = fs.readFileSync(settingsJsonPath, 'utf8');
JSON.parse(file);