Git Product home page Git Product logo

true-case-path's People

Contributors

barsh avatar devoto13 avatar realityking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

true-case-path's Issues

Remove normalization of paths for macOS

๐Ÿ‘‹

Gatsby started using this project in a recent release and unfortunately it lead to a new bug (gatsbyjs/gatsby#12005 (comment)) I've dug a bit deeper and found that it is caused by this line:

if (process.platform === 'darwin') fsPathNormalized = fsPathNormalized.normalize('NFD')

HFS+ is no longer the default file system for newer Macs and with High Sierra they even upgraded HFS+ systems to APFS if the computer is using a SSD.

APFS seems to not store things with NFD anymore, but if we try to normalize the path, glob will return an empty array for the normalized path. If we remove that line, everything works as expected.

Unfortunately I don't have any old mac with HFS anymore, so I can't test it out right now, but what do you think the best way going forward would be?

There's also #8 lingering around, which I have yet to try.

Thanks for reading this and have a great day :)

Error: EACCES: permission denied, scandir '/' [shared hosting user installation]

I'm using shared hosting, so I don't have access to anything outside my home folder.
Is it possible to fix this issue, without accessing anything outside home folder?

/usr/home/spider/hello_phoenix/node_modules/true-case-path/node_modules/glob/sync.js:321

        throw er

        ^

โ€‹

Error: EACCES: permission denied, scandir '/'

  at Object.fs.readdirSync (fs.js:914:18)

  at GlobSync._readdir (/usr/home/spider/hello_phoenix/node_modules/true-case-path/node_modules/glob/sync.js:275:41)

  at GlobSync._processReaddir (/usr/home/spider/hello_phoenix/node_modules/true-case-path/node_modules/glob/sync.js:135:22)

  at GlobSync._process (/usr/home/spider/hello_phoenix/node_modules/true-case-path/node_modules/glob/sync.js:130:10)

  at new GlobSync (/usr/home/spider/hello_phoenix/node_modules/true-case-path/node_modules/glob/sync.js:46:10)

  at Function.globSync [as sync] (/usr/home/spider/hello_phoenix/node_modules/true-case-path/node_modules/glob/sync.js:24:10)

  at trueCasePathSync (/usr/home/spider/hello_phoenix/node_modules/true-case-path/index.js:29:15)

  at trueCasePath 


UNC paths hang

Example: \\vmware-host\Shared Folders\SomeFolder\Somefile.txt which exists just hangs when calling trueCasePathSync

Please give proper attribution - your project is a packaged version of a stackoverflow.com answer of mine.

As I've said in a comment on my stackoverflow.com answer where you got the code from:

It's great that you've packaged it for npm, but you need to give proper attribution:

  • mention the source in README.md
  • add me to the contributors key in package.json

If this were a one-liner, I wouldn't ask for this, but given that the entire functionality of your package is my code verbatim, and the contents of your read-me are the comments from my code verbatim, I think it's only fair that you publicly acknowledge where it came from.

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.