I'm currently writing a plugin for atom, my issue is that i'm trying to look through files local to my project, but the wrong path is always grabbed by node.
E.g if I call this "atom.project.getPaths()"
i'm returned the exact path to my project which i'd expect node to use.
C:\Users\TomYeoman\github\package-name
However when i'm trying to iterate through the files in this project, using nodes build in "fs" command in the same file
fs.readFile('js_uncompiled/approval_functions.js')
I end up with the error
Error: ENOENT: no such file or directory, open 'C:\Users\TomYeoman\AppData\Local\atom\app-1.15.0\js_uncompiled\approval_functions.js'
Has anyone faced this before, should I override the default FS behaviour or is there something obvious i'm missing?
Thanks
via does_not_compute
No comments:
Post a Comment