PHP 8.2.30
Preview: index.js Size: 231 B
/opt/alt/alt-nodejs16/root/lib/node_modules/npm/node_modules/walk-up-path/index.js

const {dirname, resolve} = require('path')
module.exports = function* (path) {
  for (path = resolve(path); path;) {
    yield path
    const pp = dirname(path)
    if (pp === path)
      path = null
    else
      path = pp
  }
}

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
231 B lrw-r--r-- 2026-03-09 06:51:26
Edit Download
748 B lrw-r--r-- 2026-03-09 06:51:26
Edit Download
672 B lrw-r--r-- 2026-03-09 06:51:26
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).