Commit Graph

109 Commits

Author SHA1 Message Date
Alan Kligman bf5c84520d Merge branch 'utimes' into develop
minor correction to test description

corrected calling the callback function if failed to queue operation for utimes
2013-12-20 12:10:23 -05:00
Alan Kligman 7dc0ef6ccb remove comments; clarify test message 2013-12-20 00:45:11 -05:00
Barry Tulchinsky 53e6293494 updated error messages 2013-12-17 14:15:10 -05:00
Barry Tulchinsky 359b070536 updated/added tests and caching for current time 2013-12-17 11:28:22 -05:00
Barry Tulchinsky 23ace603c9 added/fixed tests and futimes bug 2013-12-15 21:22:36 -05:00
Barry Tulchinsky a0456e2909 removed console.log statements used for debugging 2013-12-15 02:57:11 -05:00
Barry Tulchinsky e84d639210 fixed bugs where atime and mtime weren't updated on the node and where mtime was valid it would error. Also added more tests 2013-12-15 02:54:51 -05:00
Alan Kligman e17acff0b1 reorganized for building 2013-12-14 22:36:24 -05:00
Alan Kligman 8510e4a712 add support for supernode, which contains metadata about the file system itself (currently only the location of the root node); updated refactoring-test 2013-12-14 14:42:00 -05:00
Barry Tulchinsky d5b5c55fe1 implementation of utimes and futimes 2013-12-13 00:46:31 -05:00
Abir Viqar 13abcd2eeb implement truncate and ftruncate 2013-12-10 12:12:43 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 3d11b34893 Update adapter tests to use Uint8Array and fix crypto encodings, complete zlib work. Fixes #52. 2013-12-04 12:14:16 -05:00
David Humphrey 82f4648ef5 Trying to sort out encodings to/from Uint8Array, not working 2013-12-03 16:14:51 -05:00
David Humphrey aca2d80104 Trying to fix encoding issue in crypto.js, not working yet 2013-12-03 15:23:47 -05:00
David Humphrey a3a1c50b4e Add Zlib adapter, generalize adapter tests 2013-12-03 15:14:20 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 8c9127d798 Remove need for encoding-indexes.js, trim bits of lodash.js we don't need. Fixes #57 2013-12-02 15:10:43 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca d2790a4703 Review fixes, move crypto to src/adapters, update tests, update README, rebuild files in dist/ 2013-12-01 16:45:24 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 440b5f2618 Remove dead code in crypto-wrappers.js 2013-12-01 16:44:10 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 05b4262cde Fix encoding issue with decrypted string in crypto wrapper 2013-12-01 16:44:10 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 0ccc9e4dc2 Don't encrypt keys 2013-12-01 16:44:10 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 58f57cca19 WIP on crypto wrapper providers for AES, TripleDES, Rabbit, 3 tests failing 2013-12-01 16:44:09 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 6608a368f5 Mark off changes to path.js with XXXidbfs comment prefix. 2013-11-29 11:28:00 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 00b7866874 Fix up issue in node.js' impl of basename 2013-11-29 11:27:59 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca c411aa1394 Include the rest of node.js' path functions 2013-11-29 11:27:59 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 6ebbdc5915 Finish WebSQL implementation, all tests passing. Fixes #21. 2013-11-29 10:29:04 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca d5db4c51b9 Down to 1 test failure 2013-11-27 19:35:52 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca c92d3a6c5f Passing 1/4 failing tests now 2013-11-27 17:12:46 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 58392efd10 WebSQL Storage Provider with tests (4 tests failing still) 2013-11-27 16:53:06 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 8a33cb0449 Fix load order for TextEncoder/TextDecoder in require.js, update dist/ 2013-11-27 13:08:26 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca d3a7750d75 Switch to node.js' callback pattrn, update public API to match node.js 2013-11-27 10:34:43 -05:00
David Humphrey b7733a591d Working null byte patch checks 2013-11-27 10:34:43 -05:00
David Humphrey 77f32c4c50 Initial tests from node repo 2013-11-27 10:34:43 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 3c5a5ef7fa Review fixes 2013-11-26 19:12:25 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 6e16f86208 Make backends pluggable via FileSystem ctor, fixes #36. 2013-11-25 19:23:51 -05:00
Abir Viqar 702dd1a3a3 open should follow symbolic links
This functionality is tested implicitly through tests in
writefile, readfile
2013-11-25 14:27:14 -05:00
Abir Viqar a95bf43069 unlink_node - add missing var 2013-11-25 14:27:08 -05:00
Abir Viqar 656dfd242b rmdir should error on non-directories 2013-11-25 14:27:00 -05:00
Abir Viqar 5cbebd135c add lstat 2013-11-25 14:26:52 -05:00
Abir Viqar 5ceff20b12 make find_node symbolic link aware
This adds a new constant SYMLOOP_MAX, which corresponds to the POSIX
variable of the number of symbolic links that may be followed. A new
error Eloop was added to signal when SYMLOOP_MAX is exceeded.
SYMLOOP_MAX has been arbitrarily set to 10 while on linux it is set
to 40 and the POSIX minimum is 8.

find_node when encountering a symbolic link anywhere in the given path
will attempt to follow it.

Note that SYMLOOP_MAX is only the limit of symbolic links to
follow per symbolic link. There is currently no attempt to limit
the total number of symbolic links followed when resolving a path.

This adds tests for path resolution of symbolic links as well.
2013-11-25 14:26:46 -05:00
Abir Viqar 85a804cc0c add symlink
Also enable readlink's symbolic link test.
2013-11-25 14:26:40 -05:00
Abir Viqar a78f1ee3ff add readlink
Disable the test on a symbolic link until symlink is added.

Also add myself to AUTHORS
2013-11-25 14:26:34 -05:00
Alan Kligman bb46fa34e8 removed all uses of promises; remove promise library since it's not longer needed 2013-11-21 20:44:57 -05:00
Alan Kligman 291ef6bc94 removed a bunch of promisey code; converted to callbacks 2013-11-21 16:15:30 -05:00
Alan Kligman c9d60fbd9b refactoring to support additional backends 2013-11-21 15:45:47 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 9813886d38 s/this/that/ in a few spots in fs.js, add myself to AUTHORS 2013-11-15 14:50:19 -05:00
Alan Kligman c76fc01a20 support rename() 2013-11-12 13:39:11 -05:00
Alan Kligman 638109f911 fix remaining lint errors 2013-11-12 13:14:23 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca cf7d12a6b3 Refactor duplicate flag checks 2013-11-09 15:12:52 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca ae2b8aa9b3 Use internal fs functions instead of public methods for readFile, writeFile. 2013-11-09 14:51:21 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 2a8705ed0b Add fs.readFile, fs.writeFile with tests 2013-11-08 15:33:44 -05:00