Comments (4)
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.
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.
Have not started on it yet so you should be good.
from bids-validator.
Added new PR #156
from bids-validator.
Related Issues (20)
- Legacy validator permitting (i)EEG files without sidecars HOT 3
- New phenotype filename rule messes with filename rule suggestion heuristic.
- Implement allequal in expression language. HOT 2
- TSV column type check overhaul HOT 6
- No error/warning when IDs in `participant.tsv` do not match directory names HOT 5
- Error 1: [Code 1] NOT_INCLUDED in valid (?) filenames across dataset and more errors HOT 1
- version reporting in compiled/installed version from url is just "master" or "alpha" HOT 1
- git query for version -- redirect stderr to /dev/null or provide -c safe.directory=*
- do not add ANSI coloring if stdout is not a tty -- add `--color=auto,yes,no` HOT 1
- Introspect values in failing checks HOT 3
- deno validator: incorrectly claims that README is missing HOT 4
- Make bids-validator conform to BIDS-App (or execution-spec right away) specification HOT 2
- deno validator: add option to run only specified list of checks
- deno validator: complains about EVENT_ONSET_ORDER but AFAIK they are sorted! HOT 1
- Validate dataset_description.json contents HOT 3
- deno: chokes on `derivatives/bagel.csv` HOT 1
- deno validator: --filenameMode still wants dataset path and then seems to do more than just paths validation HOT 1
- Naming, volume matching and task naming HOT 2
- Installing CLI raises warnings HOT 4
- Nested object validation using ajv
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bids-validator.