PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
lib
/
utils
const fs = require('fs'); const debugLogRegex = /^ghost-cli-debug-.*\.log$/i; const importantDotfiles = ['.ghost-cli']; module.exports = function dirIsEmpty(dir) { const files = fs.readdirSync(dir); if (!files.length) { return true; } return files.every(file => file.match(debugLogRegex) || (file.startsWith('.') && !importantDotfiles.includes(file))); };
[-] needed-migrations.js
[edit]
[-] port-polling.js
[edit]
[+]
..
[-] local-process.js
[edit]
[-] get-proxy-agent.js
[edit]
[-] url.js
[edit]
[-] check-valid-install.js
[edit]
[-] use-ghost-user.js
[edit]
[-] config.js
[edit]
[-] yarn.js
[edit]
[-] dir-is-empty.js
[edit]
[-] pre-checks.js
[edit]
[-] find-extensions.js
[edit]
[-] check-root-user.js
[edit]
[-] version.js
[edit]