File manager - Edit - /usr/local/lib/node_modules/ghost-cli/lib/utils/dir-is-empty.js
Back
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))); };
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings