Re:Google’s Chromebooks Have Hit Their Stride
by skybrian on Saturday December 28, 2013 @09:54PM
(#6978026)
Could you say more about file I/O?
[ Parent
| on HN ]
Re:Google’s Chromebooks Have Hit Their Stride
by pedalpete on Sunday December 29, 2013 @01:20AM
(#6978644)
Sure, I wanted to allow the user to select a folder, and for the app to read all the sub-folders and files. Unfortunately, from my experiments, I can open a file, but opening a folder using webkitdirectory hides the path to the folder, so I can't read the folder and it's sub-directories.
As I understand it, I could copy the files to the sandboxed filesystem API, but there are a few issues with working in an IDE environment which would break that usability, for example, grunt creating new files, etc. etc.
Please correct me if I'm wrong. Happy to take this question to SA if that is a better venue where people would more likely look for the answer as well, if you've got a better solution.
As I said, I'm keen to do this as a Chrome Packaged App, though there are a few things like Grunt that I'll want to be running within the app, so node-webkit isn't a bad solution for the prototype.