Create the file at path p with the given mode. Then, open it with the given flag.
Opens the file at path p with the given flag. The file must exist.
The path to open.
The flag to use when opening the file.
Special HTTPFS function: Preload the given file into the index.
We have the entire file as a buffer; optimize readFile.
Specially-optimized readfile.
Construct an HTTPRequest file system backend with the given options.
Generated using TypeDoc
A simple filesystem backed by HTTP downloads. You must create a directory listing using the
make_http_index
tool provided by BrowserFS.If you install BrowserFS globally with
npm i -g browserfs
, you can generate a listing by runningmake_http_index
in your terminal in the directory you would like to index:make_http_index > index.json
Listings objects look like the following:
This example has the folder
/home/jvilk
with subfilesomeFile.txt
and subfoldersomeDir
.