File Explorer

/proc/self/root/proc/1/task/1/root/node24/lib/node_modules/npm/node_modules/@npmcli/git/lib

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

is.js216 B · 5 lines
// not an airtight indicator, but a good gut-check to even bother tryingconst { stat } = require('fs/promises')module.exports = ({ cwd = process.cwd() } = {}) =>  stat(cwd + '/.git').then(() => true, () => false)