Git Product home page Git Product logo

Comments (4)

rwblair avatar rwblair commented on August 18, 2024

Error I'm seeing with a dangling symlink:

fs.js:892
return binding.stat(pathModule._makeLong(path));
^

Error: ENOENT: no such file or directory, stat 'tests/data/BIDS-examples-1.0.0-rc3u4/ds001//sub-01/anat/dangling.sym'
at Error (native)
at Object.fs.statSync (fs.js:892:18)
at getFiles (/Users/rblair/projects/bids-validator/utils/files.js:95:16)
at getFiles (/Users/rblair/projects/bids-validator/utils/files.js:96:13)
at getFiles (/Users/rblair/projects/bids-validator/utils/files.js:96:13)
at Object.readDir (/Users/rblair/projects/bids-validator/utils/files.js:73:17)
at Object.BIDS.start as BIDS
at module.exports (/Users/rblair/projects/bids-validator/cli.js:8:15)
at Object. (/Users/rblair/projects/bids-validator/bin/bids-validator:20:18)
at Module._compile (module.js:413:34)

Different function may need to be used to tell if a file is a symlink, fs.stat' fs.Stats object wont contain an isSymbolicLink attribute:
https://nodejs.org/dist/latest-v4.x/docs/api/fs.html#fs_class_fs_stats
https://nodejs.org/dist/latest-v4.x/docs/api/fs.html#fs_fs_lstat_path_callback

from bids-validator.

constellates avatar constellates commented on August 18, 2024

Thanks @rwblair . That looks like the root of this issue. I have some time to take a look at this now, so let me know if you've already started writing a fix so we're not doubling up.

from bids-validator.

rwblair avatar rwblair commented on August 18, 2024

Have not started on it yet so you should be good.

from bids-validator.

constellates avatar constellates commented on August 18, 2024

Added new PR #156

from bids-validator.

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.