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
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
a02f525a7c
docs
2013-11-15 14:39:59 -05:00
Alan Kligman
78568f9a85
update readme
2013-11-15 14:37:29 -05:00
Alan Kligman
a4b1341a84
update built libs
2013-11-12 13:39:49 -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
Alan K
c590f930e5
Merge pull request #6 from humphd/utf8
...
Add fs.readFile, fs.writeFile with tests
2013-11-11 20:01:30 -08: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
034dc8c166
Add test for invalid path to readFile.
2013-11-09 15:12:07 -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
Alan Kligman
3e3c724b25
update minified library
2013-11-07 17:29:19 -05:00
Alan Kligman
28add9cebd
rename source files
2013-11-07 16:29:23 -05:00
Alan Kligman
cf033ac574
remove unused source file
2013-11-07 16:24:27 -05:00
Alan Kligman
7e59e3a684
support for readdir
2013-11-07 15:55:14 -05:00
Alan Kligman
d46e6a1d42
Merge remote-tracking branch 'upstream/develop' into develop
2013-08-16 16:38:06 -04:00
Alan Kligman
53252fcc29
Removed.
2013-08-16 16:36:58 -04:00
Alan Kligman
1893122fe7
Removed.
2013-08-16 16:33:48 -04:00
Alan K
ad5889a8a4
Create README.md
2013-08-06 12:33:22 -04:00
Alan Kligman
0256c2fece
Updated dists.
2013-07-29 17:58:55 -04:00
Alan Kligman
aeccbd4d3f
Added stats object.
2013-07-29 16:30:24 -04:00
Alan Kligman
dabf8c8c7a
Added lseek and tests.
2013-07-29 15:59:17 -04:00
Alan Kligman
850758e37a
Add fstat and tests. Fix position bug in read/write.
2013-07-29 14:55:25 -04:00
Alan Kligman
33791ca950
Added stubs. Fix position for read/write.
2013-07-26 21:53:25 -04:00
Alan Kligman
3d8a414f5d
Added release file.
2013-07-26 12:07:45 -04:00
Alan Kligman
984db2ceba
Add file type to stats.
2013-07-26 11:59:32 -04:00
Alan Kligman
e690ed5292
Unlink implementation and tests.
2013-07-26 00:15:48 -04:00
Alan Kligman
717bbc25c1
Link tests.
2013-07-25 22:49:53 -04:00
Alan Kligman
ea8fbd48ad
Updated tests.
2013-07-22 23:34:38 -04:00
Alan Kligman
fb9fed0663
Tests for reading and writing data.
2013-07-22 14:31:44 -04:00
Alan Kligman
40d3f25d9a
More tests, updated implementation.
2013-07-22 13:08:35 -04:00
Alan Kligman
d3d7dcabde
Code and tests for fs.open
2013-07-19 11:22:23 -04:00
Alan Kligman
5853704bab
Updated tests.
2013-07-15 11:52:41 -04:00
Alan Kligman
cfd0932736
More tests. Added try/catch around read/write_object.
2013-07-13 12:41:10 -04:00
Alan Kligman
3d00c85a27
Updated tests.
2013-07-12 12:07:57 -04:00
Alan Kligman
c3c9751ff4
Stat implementation, updated tests.
2013-07-12 11:11:05 -04:00