📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 00:57:09
📂
/
/
opt
/
alt
/
alt-nodejs16
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules.bundled
/
@npmcli
/
git
/
lib
✏️
Editing: find.js
const is = require('./is.js') const { dirname } = require('path') module.exports = async ({ cwd = process.cwd() } = {}) => { if (await is({ cwd })) { return cwd } while (cwd !== dirname(cwd)) { cwd = dirname(cwd) if (await is({ cwd })) { return cwd } } return null }
💾 Save Changes
❌ Cancel