0.1.1 • Published 11 years ago
ti-fs v0.1.1
ti-fs
node.js-style fs for Titanium. It can serve as a drop-in replacement for node.js fs for use with browserify.
install 
$ npm install ti-fs
$ cp node_modules/ti-fs/ti-fs.js /path/to/project/Resources/support

- * see issue #7 for details on
lstatandlstatSync - ** see issue #6 for details on
readlinkandreadlinkSync - *** see issue #5 for details on
realpathandrealpathSync
assumptions
- All
bufferbuffers are assumed to be Ti.Buffer instances, in the absence of a Titanium implementation of the node.jsbuffermodule. - All
fdfile descriptors are assumed to be Ti.Filesystem.FileStream instances.
caveats
- Titanium streams (in this case Ti.Filesystem.FileStream) do not support the
positionproperty in any of the following functions:read | readSyncwrite | writeSync - The following encodings are not currently supported, though could be if requests are made in the issues:
hexucs2 | ucs-2*utf16le | utf-16le
contribute 
- Run all linting and tests with grunt.
- Add tests for any new implemented functionality.
- In lieu of an actual style guide, please follow the existing conventions used in the code.
- Any interface not part of the node.js
fsmodule will be rejected.