if (exists) {
if (prefix && isAbsolute(prefix) && !this.nomount) {
if (prefix.charAt(0) === "/") {
- console.error('JOIN 0', this.root, prefix)
prefix = path.join(this.root, prefix)
- console.error('JOIN 1', this.root, prefix)
} else {
prefix = path.resolve(this.root, prefix)
}
if (prefix === null) read = "."
else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) {
if (!prefix || !isAbsolute(prefix)) {
- console.error('JOIN 1', "/", prefix)
prefix = path.join("/", prefix)
- console.error('JOIN 2', "/", prefix)
}
read = prefix = path.resolve(prefix)
else e = prefix + e
}
if (e.charAt(0) === "/" && !this.nomount) {
- console.error('JOIN 3', this.root, e)
e = path.join(this.root, e)
- console.error('JOIN 4', this.root, e)
}
if (process.platform === "win32")
assert(this instanceof Glob)
var abs = f
if (f.charAt(0) === "/") {
- console.error('JOIN 5', this.root, f)
abs = path.join(this.root, f)
- console.error('JOIN 6', this.root, f)
} else if (this.changedCwd) {
abs = path.resolve(this.cwd, f)
}
assert(this instanceof Glob)
var abs = f
if (f.charAt(0) === "/") {
- console.error('JOIN 5', this.root, f)
abs = path.join(this.root, f)
- console.error('JOIN 5', abs)
} else if (isAbsolute(f)) {
abs = f
} else if (this.changedCwd) {