Commit Graph

881 Commits

Author SHA1 Message Date
Alan K 317fa75a84 Update README.md 2013-11-29 21:28:35 -05:00
Alan K 43800f48ff Merge pull request #50 from humphd/expose-path
Expose path on IDBFS, add missing node.js bits of path module
2013-11-29 09:59:32 -08:00
David Humphrey (:humph) david.humphrey@senecacollege.ca cce22ea599 Fix indent level on API headers in README 2013-11-29 11:37:58 -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
Alan K 69278b190b Update README.md 2013-11-29 11:19:54 -05:00
Alan K 36b3841caa Merge pull request #49 from humphd/update-readme
Update readme
2013-11-29 08:15:41 -08:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 93c2b8e979 Fix typo in README 2013-11-29 11:11:18 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 79739f23bf Review fixes 2013-11-29 11:09:53 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 1a3516f49e Update README for providers and other recent changes. 2013-11-29 10:58:49 -05:00
Alan K 1a3a9e62c0 Merge pull request #46 from humphd/websql
WebSQL Storage Provider with tests (4 tests failing still)
2013-11-29 07:54:10 -08: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
Alan K 3d171b867d Merge pull request #44 from humphd/node-tests
Begin to port Node.js tests, break tests into smaller files using require
2013-11-27 11:09:11 -08: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 415ad41406 Break test files up using require 2013-11-27 12:18:09 -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
Alan Kligman b0dbbf932a update build 2013-11-26 22:43:41 -05:00
Alan K 741066cb7f Merge pull request #39 from humphd/issue36
Make backends pluggable via FileSystem ctor, fixes #36.
2013-11-26 19:44:36 -08: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
Alan K 6cc4226b45 Merge pull request #38 from ispedals/symbolic-link
Initial Implementation of Symbolic link
2013-11-25 15:01:41 -08:00
Abir Viqar ac689fc8b4 test rename does not follow symbolic links 2013-11-25 14:27:16 -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 1b3ef1a449 unlink should not follow symbolic links 2013-11-25 14:27:05 -05:00
Abir Viqar f3b9a83343 test link should not follow symbolic links 2013-11-25 14:27:03 -05:00
Abir Viqar 656dfd242b rmdir should error on non-directories 2013-11-25 14:27:00 -05:00
Abir Viqar 635dd2e899 test readdir's symbolic link support 2013-11-25 14:26:57 -05:00
Abir Viqar e8df3e2e6b test stat's symbolic link support 2013-11-25 14:26:55 -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 K 612410ae67 Merge pull request #32 from js-platform/backend-refactoring
refactoring to support additional backends
2013-11-21 12:54:41 -08:00
Alan Kligman c9d60fbd9b refactoring to support additional backends 2013-11-21 15:45:47 -05:00
Alan K cfc63d80c1 Merge pull request #27 from skaegi/develop
Minor corrections for README.md -- fs.rename, "agruments" typo, fs.link ...

I'll also sync with the project page on js-platform.github.io/idbfs
2013-11-20 14:08:39 -08:00
skaegi ddcf6035be Minor corrections for README.md -- fs.rename, "agruments" typo, fs.link param names 2013-11-20 17:05:31 -05:00
Alan K a73ff08124 Update README.md 2013-11-19 19:57:33 -05:00
Alan K d45eaf21c2 Merge pull request #19 from humphd/develop
Add back docs for readFile() and writeFile() which got removed from README
2013-11-18 11:57:09 -08:00
David Humphrey (:humph) david.humphrey@senecacollege.ca f560340364 Add back docs for readFile() and writeFile() which got removed from README. 2013-11-18 14:49:16 -05:00
Alan Kligman e4b101e0ed new build 2013-11-15 15:11:09 -05:00
Alan K 969fbd1e09 Merge pull request #12 from humphd/develop
s/this/that/ in a few spots in fs.js, add myself to AUTHORS
2013-11-15 12:02:26 -08:00