4 ms·
Does the File API give you full access to the file system? Last time I checked it didn't.
by sker 13y ago
Does the File API give you full access to the file system? Last time I checked it didn't.
- masklinn 13y ago> Does the File API give you full access to the file system? The File API gives you access to the files the user has selected for your access. No website-accessible API will ever give full access to anything for rather good reasons.
- sker 13y agoYes, that's why it isn't a good replacement for something like WPF, Qt, wxWidgets, etc. node-webkit and NiDIUM fix that problem.
- bankIsSketch 13y agoThe File API wasn't designed with that in mind. It's built for a web browser. They wanted security for end-users. I'm not going to blame my phone for not being able to make phone calls through my TV.
- gnufied 13y agoWho is talking about building "websites"? Argument I think is- it should be possible to have regular file system access from a browser-like engine. That would greatly simplify building desktop applications. Imagine you chose to build an IDE using Webkit and it lets you access everything via JS api that you could access using Cocoa or GTK+.
- masklinn 13y ago> Who is talking about building "websites"? OP > wanted to be able to use the power of the browser for standalone, cross-platform desktop applications. considering the power of the browsers is to run web applications, it makes sense that the standard and cross-platform APIs they expose are web APIs. > Imagine you chose to build an IDE using Webkit and it lets you access everything via JS api that you could access using Cocoa or GTK+. You've got XUL, you've got webviews, you've got node bindings for Qt, wx or opengl. If you want to write desktop applications in javascript there's no dearth of ways to do it.