Commit Graph

5 Commits

Author SHA1 Message Date
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 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
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
Alan Kligman 2d195ff6d6 WIP 2013-05-31 15:03:18 -04:00
Alan Kligman 4f5ff333fb Reorganize files. 2013-05-30 21:38:44 -04:00