$44 GRAYBYTE WORDPRESS FILE MANAGER $13

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cpanel/ea-nodejs22/lib/node_modules/npm/node_modules/glob/dist/commonjs/

HOME
Current File : /opt/cpanel/ea-nodejs22/lib/node_modules/npm/node_modules/glob/dist/commonjs//ignore.js
"use strict";
// give it a pattern, and it'll be able to tell you if
// a given path should be ignored.
// Ignoring a path ignores its children if the pattern ends in /**
// Ignores are always parsed in dot:true mode
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ignore = void 0;
const minimatch_1 = require("minimatch");
const pattern_js_1 = require("./pattern.js");
const defaultPlatform = (typeof process === 'object' &&
    process &&
    typeof process.platform === 'string') ?
    process.platform
    : 'linux';
/**
 * Class used to process ignored patterns
 */
class Ignore {
    relative;
    relativeChildren;
    absolute;
    absoluteChildren;
    platform;
    mmopts;
    constructor(ignored, { nobrace, nocase, noext, noglobstar, platform = defaultPlatform, }) {
        this.relative = [];
        this.absolute = [];
        this.relativeChildren = [];
        this.absoluteChildren = [];
        this.platform = platform;
        this.mmopts = {
            dot: true,
            nobrace,
            nocase,
            noext,
            noglobstar,
            optimizationLevel: 2,
            platform,
            nocomment: true,
            nonegate: true,
        };
        for (const ign of ignored)
            this.add(ign);
    }
    add(ign) {
        // this is a little weird, but it gives us a clean set of optimized
        // minimatch matchers, without getting tripped up if one of them
        // ends in /** inside a brace section, and it's only inefficient at
        // the start of the walk, not along it.
        // It'd be nice if the Pattern class just had a .test() method, but
        // handling globstars is a bit of a pita, and that code already lives
        // in minimatch anyway.
        // Another way would be if maybe Minimatch could take its set/globParts
        // as an option, and then we could at least just use Pattern to test
        // for absolute-ness.
        // Yet another way, Minimatch could take an array of glob strings, and
        // a cwd option, and do the right thing.
        const mm = new minimatch_1.Minimatch(ign, this.mmopts);
        for (let i = 0; i < mm.set.length; i++) {
            const parsed = mm.set[i];
            const globParts = mm.globParts[i];
            /* c8 ignore start */
            if (!parsed || !globParts) {
                throw new Error('invalid pattern object');
            }
            // strip off leading ./ portions
            // https://github.com/isaacs/node-glob/issues/570
            while (parsed[0] === '.' && globParts[0] === '.') {
                parsed.shift();
                globParts.shift();
            }
            /* c8 ignore stop */
            const p = new pattern_js_1.Pattern(parsed, globParts, 0, this.platform);
            const m = new minimatch_1.Minimatch(p.globString(), this.mmopts);
            const children = globParts[globParts.length - 1] === '**';
            const absolute = p.isAbsolute();
            if (absolute)
                this.absolute.push(m);
            else
                this.relative.push(m);
            if (children) {
                if (absolute)
                    this.absoluteChildren.push(m);
                else
                    this.relativeChildren.push(m);
            }
        }
    }
    ignored(p) {
        const fullpath = p.fullpath();
        const fullpaths = `${fullpath}/`;
        const relative = p.relative() || '.';
        const relatives = `${relative}/`;
        for (const m of this.relative) {
            if (m.match(relative) || m.match(relatives))
                return true;
        }
        for (const m of this.absolute) {
            if (m.match(fullpath) || m.match(fullpaths))
                return true;
        }
        return false;
    }
    childrenIgnored(p) {
        const fullpath = p.fullpath() + '/';
        const relative = (p.relative() || '.') + '/';
        for (const m of this.relativeChildren) {
            if (m.match(relative))
                return true;
        }
        for (const m of this.absoluteChildren) {
            if (m.match(fullpath))
                return true;
        }
        return false;
    }
}
exports.Ignore = Ignore;
//# sourceMappingURL=ignore.js.map

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
17 Jan 2026 1.16 AM
root / root
0755
glob.d.ts
14.461 KB
17 Jan 2026 1.16 AM
root / root
0644
glob.d.ts.map
3.943 KB
17 Jan 2026 1.16 AM
root / root
0644
glob.js
8.346 KB
17 Jan 2026 1.16 AM
root / root
0644
glob.js.map
27.557 KB
17 Jan 2026 1.16 AM
root / root
0644
has-magic.d.ts
0.742 KB
17 Jan 2026 1.16 AM
root / root
0644
has-magic.d.ts.map
0.24 KB
17 Jan 2026 1.16 AM
root / root
0644
has-magic.js
1.033 KB
17 Jan 2026 1.16 AM
root / root
0644
has-magic.js.map
1.447 KB
17 Jan 2026 1.16 AM
root / root
0644
ignore.d.ts
0.794 KB
17 Jan 2026 1.16 AM
root / root
0644
ignore.d.ts.map
0.865 KB
17 Jan 2026 1.16 AM
root / root
0644
ignore.js
4.167 KB
17 Jan 2026 1.16 AM
root / root
0644
ignore.js.map
7.296 KB
17 Jan 2026 1.16 AM
root / root
0644
index.d.ts
6.001 KB
17 Jan 2026 1.16 AM
root / root
0644
index.d.ts.map
3.989 KB
17 Jan 2026 1.16 AM
root / root
0644
index.js
2.809 KB
17 Jan 2026 1.16 AM
root / root
0644
index.js.map
8.174 KB
17 Jan 2026 1.16 AM
root / root
0644
package.json
0.024 KB
17 Jan 2026 1.16 AM
root / root
0644
pattern.d.ts
2.067 KB
17 Jan 2026 1.16 AM
root / root
0644
pattern.d.ts.map
1.283 KB
17 Jan 2026 1.16 AM
root / root
0644
pattern.js
7.129 KB
17 Jan 2026 1.16 AM
root / root
0644
pattern.js.map
13.077 KB
17 Jan 2026 1.16 AM
root / root
0644
processor.d.ts
2.086 KB
17 Jan 2026 1.16 AM
root / root
0644
processor.d.ts.map
1.707 KB
17 Jan 2026 1.16 AM
root / root
0644
processor.js
10.508 KB
17 Jan 2026 1.16 AM
root / root
0644
processor.js.map
18.598 KB
17 Jan 2026 1.16 AM
root / root
0644
walker.d.ts
3.691 KB
17 Jan 2026 1.16 AM
root / root
0644
walker.d.ts.map
4.097 KB
17 Jan 2026 1.16 AM
root / root
0644
walker.js
12.567 KB
17 Jan 2026 1.16 AM
root / root
0644
walker.js.map
27.245 KB
17 Jan 2026 1.16 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF