MacGapProject / MacGap1

Desktop WebKit wrapper for HTML/CSS/JS applications.
Other
3.55k stars 208 forks source link

Add support for files #103

Closed andersonoliveira closed 10 years ago

andersonoliveira commented 10 years ago

Is there any possibility to add support for files? I mean, copy, read, delete, crete folder,….

Something like TideSDK? http://tidesdk.multipart.net/docs/user-dev/generated/#!/api/Ti.Filesystem.File

Thanks

jeff-h commented 10 years ago

We have a couple of pull requests adding at least some of what you mention above. However, my preference is that we keep this kind of stuff out of MacGap, and instead use a combination of NodeLike and MacGap.

NodeLike gives you a bunch of node.js-compatible JavaScript functions which can be added to MacGap. However, it is not a full Node JS binary, meaning your MacGap app will still be small, and you will still be allowed on the Mac App Store if that's your thing.

Check it out at https://github.com/node-app/macgap — the version of MacGap there is a few weeks out of date, but I hope to bring it up to sync sometime in the next week or two.

Basically, using the version of MacGap from the above URL means you can now use any of the functions listed at http://nodejs.org/api/fs.html — it's a very comprehensive set of filesystem commands.

Let me know if this doesn't make enough sense! :)