You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`wipe`| boolean = false | Delete the database and start with an empty filesystem |
65
+
|`url`| string = undefined | Let `readFile` requests fall back to an HTTP request to this base URL |
66
+
|`urlauto`| boolean = false | Fall back to HTTP for every read of a missing file, even if unbacked |
66
67
67
68
### `fs.mkdir(filepath, opts?, cb)`
68
69
@@ -149,6 +150,17 @@ Create a symlink at `filepath` that points to `target`.
149
150
150
151
Read the target of a symlink.
151
152
153
+
### `fs.backFile(filepath, opts?, cb)`
154
+
155
+
Create or change the stat data for a file backed by HTTP. Size is fetched with a HEAD request. Useful when using an HTTP backend without `urlauto` set, as then files will only be readable if they have stat data.
156
+
Note that stat data is made automatically from the file `/.superblock.txt` if found on the server. `/.superblock.txt` can be generated or updated with the [included standalone script](src/superblocktxt.js).
0 commit comments