Skip to content

Commit 64b7f62

Browse files
save file
1 parent 6b73d28 commit 64b7f62

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
3+
4+
5+
6+
7+
8+
9+
10+
11+
12+
13+
14+
15+
This code module implements a lightweight HTTPS server that exposes direct file system operations to the browser through a simple fetch‑based API. By sending requests such as
16+
17+
js
18+
fetch("https://localhost:3000/a.txt", { headers: { mode: "load" } })
19+
the browser can interact with local files securely and consistently.
20+
21+
Supported operations include:
22+
23+
load → retrieve file contents
24+
25+
save → write or overwrite file data
26+
27+
file delete → remove a file
28+
29+
dir read → list directory contents
30+
31+
dir create → make a new directory
32+
33+
dir delete → remove a directory
34+
35+
Together, these commands provide a complete set of standard file I/O capabilities accessible from the browser. This member sits at the Code stage of the pipeline: more substantial than a library, since it defines a working server with a defined protocol, but not yet a full project. It serves as a foundation for building browser‑driven file management tools, developer utilities, or experimental web‑native applications.
36+
37+
38+
39+
40+
41+
42+
43+

0 commit comments

Comments
 (0)