forked from flipperdevices/flipperzero-protobuf
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstorage.proto
62 lines (48 loc) · 851 Bytes
/
storage.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
syntax = "proto3";
package PB_Storage;
option java_package = "com.flipperdevices.protobuf.storage";
message File {
enum FileType {
FILE = 0; // default value
DIR = 1;
}
FileType type = 1;
string name = 2;
uint32 size = 3;
bytes data = 4;
}
message StatRequest {
string path = 1;
}
message StatResponse {
File file = 1;
}
message ListRequest {
string path = 1;
}
message ListResponse {
repeated File file = 1;
}
message ReadRequest {
string path = 1;
}
message ReadResponse {
File file = 1;
}
message WriteRequest {
string path = 1;
File file = 2;
}
message DeleteRequest {
string path = 1;
bool recursive = 2;
}
message MkdirRequest {
string path = 1;
}
message Md5sumRequest {
string path = 1;
}
message Md5sumResponse {
string md5sum = 1;
}