Skip to content

Commit

Permalink
Changed prefererences directory from /prefs/ to /usr/prefs/
Browse files Browse the repository at this point in the history
This change will keep all user files, including preferences, within a single directory.
This commit also adjusts the comment in the .gitignore file regarding the /usr/ directory. See the diff for details.
  • Loading branch information
ZelnickB committed Aug 24, 2020
1 parent 372427b commit fc387d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,5 @@ dist
# Sphinx documentation build folder (documentation is automatically built and published by Read the Docs)
/docs/_build

# Aluminum preferences folder
/prefs/

# Aluminum user resources folder
# Aluminum user files folder
/usr/
2 changes: 1 addition & 1 deletion src/wire/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const os = require('os') // For retrieving operating system information (for err
const path = require('path') // For manipulating request paths
const mimeTypes = require('mime-types') // For sending the correct Content-Type HTTP header

const ports = JSON.parse(fs.readFileSync('../../prefs/ports.json', 'utf8')).wire
const ports = JSON.parse(fs.readFileSync('../../usr/prefs/ports.json', 'utf8')).wire
const errorPage = fs.readFileSync('../../defaults/errors/404.html', 'utf8') // Default error page content
const logo = fs.readFileSync('../../logo.svg', 'utf8')

Expand Down

0 comments on commit fc387d9

Please sign in to comment.