GithubHelp home page GithubHelp logo

Full absolute path about glob-fs HOT 14 OPEN

micromatch avatar micromatch commented on August 25, 2024 3
Full absolute path

from glob-fs.

Comments (14)

quinton-ashley avatar quinton-ashley commented on August 25, 2024 2

Why hasn't this been fixed?

from glob-fs.

jonathanbarton avatar jonathanbarton commented on August 25, 2024 1

I didn't see this documented tbh, but if you look in the code there is an option cwd that can be added to your options {}. i.e. var files = glob.readdirSync(my_path, {cwd: __dirname});
This fixed me up and I believe this mirrors typical glob functionality I've seen elsewhere.

Sidenote: @jonschlinkert your code is really pretty :)

from glob-fs.

doowb avatar doowb commented on August 25, 2024 1

@AlexNodex do you have an example to reproduce the error you're seeing?
I'm not able to reproduce it so you might be using a different pattern than me.

If you don't pass in the cwd on the options, then '.' will be used which resolves to the current working directory for me.

from glob-fs.

doowb avatar doowb commented on August 25, 2024 1

it prefixes the directory with the working directory

That's different than:

the module prepend it's own path

I think I see the issue, but it would be helpful to have a code example showing what's happening and possibly a failing unit test showing what's expected.

from glob-fs.

AlexNodex avatar AlexNodex commented on August 25, 2024 1

This is why it's confusing, no other module works by prefixing anything!

from glob-fs.

AlexNodex avatar AlexNodex commented on August 25, 2024

It doesn't matter what I pass in, it prefixes the directory with the working directory even if I put the full absolute path in.

from glob-fs.

jonathanbarton avatar jonathanbarton commented on August 25, 2024

I noticed the glob.sync() feature which parities readdirSync in the glob package does not behave this way, just fyi

from glob-fs.

jonschlinkert avatar jonschlinkert commented on August 25, 2024

@quinton-ashley please clarify your question. Are you asking what the technical hurdles are?

from glob-fs.

jonschlinkert avatar jonschlinkert commented on August 25, 2024

@quinton-ashley why haven't you answered?

from glob-fs.

jonschlinkert avatar jonschlinkert commented on August 25, 2024

@quinton-ashley I'm waiting for a response. Why haven't you answered my question?

from glob-fs.

jonschlinkert avatar jonschlinkert commented on August 25, 2024

@quinton-ashley please explain why you asked your question.

from glob-fs.

quinton-ashley avatar quinton-ashley commented on August 25, 2024

Did I stutter? You marked this as a bug months ago why hasn't it been a priority? Seems like a pretty bad flaw for a project called glob-fs to not be able to access the rest of the filesystem.

from glob-fs.

jonschlinkert avatar jonschlinkert commented on August 25, 2024

Unless you paid for this to be fixed, and you are quite literally owed an explanation, there is never going to be a time when asking this question is acceptable. Even if you had contributed something of value to this project (or any other project) that makes you feel like you have a right to ask such a question, which you haven't, you would still not be entitled to an answer. And if you had paid and asked in such a tone, I wouldn't take you as a client again.

I don't care how much you are frustrated by a bug. If you can't grasp the simple fact that free and open source software is, in fact, free and open source and that I do this on my own spare time and do not owe you anything at all - including an explantation as to how I spend my time, then I don't want you using my software at all. You, and people like you, are a detriment to the field, I have wasted my time responding to you - at the cost of being productive, and I somehow feel diminished knowing that you and I both work in the same industry. Please do not comment on any of my projects again.

from glob-fs.

jonschlinkert avatar jonschlinkert commented on August 25, 2024

You might stutter, but I'll never know about it because I don't want to hear another word from you. You've been blocked.

from glob-fs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.