AbsolutePaths: written findEtherpadRoot()

This is just a function (with an ugly side effect for caching purposes) that
heuristically tries to compute the Etherpad installation path when running under
Unix and win32 (they have different file system layouts).

This path can be used by Etherpad as a base for all the relative paths, in order
to be deterministic and not depending on cwd.
This commit is contained in:
muxator 2018-08-22 00:38:13 +02:00 committed by muxator
parent cbce3c1b08
commit b1a0e14ee2
2 changed files with 66 additions and 0 deletions

View file

@ -38,6 +38,7 @@
"etherpad-yajsml": "0.0.2",
"express": "4.16.3",
"express-session": "1.15.6",
"find-root": "1.1.0",
"formidable": "1.2.1",
"graceful-fs": "4.1.3",
"jsonminify": "0.4.1",