@@ -61,6 +61,7 @@ Response field description:
6161 - ` c_time ` file creation time
6262 - ` a_time ` file last access time
6363 - ` m_time ` file last modify time
64+ - ` link_to ` link to the real file
6465
6566##### Example
6667
@@ -128,7 +129,8 @@ Here is an example response:
128129 ],
129130 "c_time" : 1649431872 ,
130131 "a_time" : 1649431873 ,
131- "m_time" : 1647397031
132+ "m_time" : 1647397031 ,
133+ "link_to" : " "
132134 },
133135 {
134136 "path" : " hello_gofs.txt" ,
@@ -143,7 +145,8 @@ Here is an example response:
143145 ],
144146 "c_time" : 1649431542 ,
145147 "a_time" : 1649434237 ,
146- "m_time" : 1649434237
148+ "m_time" : 1649434237 ,
149+ "link_to" : " "
147150 },
148151 {
149152 "path" : " resource" ,
@@ -153,7 +156,8 @@ Here is an example response:
153156 "hash_values" : null ,
154157 "c_time" : 1649431669 ,
155158 "a_time" : 1649431898 ,
156- "m_time" : 1649431898
159+ "m_time" : 1649431898 ,
160+ "link_to" : " "
157161 }
158162 ]
159163}
@@ -174,7 +178,7 @@ Push the file changes to the [Remote Push Server](/README.md#remote-push-server)
174178Request field description:
175179
176180- ` push_data ` the request data of push api, contains basic push file info and chunk info etc
177- - ` action ` the action of file change, Create(1) Write(2) Remove(3) Rename(4) Chmod(5)
181+ - ` action ` the action of file change, Create(1) Write(2) Remove(3) Rename(4) Chmod(5) Symlink(6)
178182 - ` push_action ` the file upload action, CompareFile(1) CompareChunk(2) CompareFileAndChunk(3) Write(4) Truncate(5)
179183 - ` file_info ` basic push file info
180184 - ` path ` file path
@@ -184,6 +188,7 @@ Request field description:
184188 - ` c_time ` file creation time
185189 - ` a_time ` file last access time
186190 - ` m_time ` file last modify time
191+ - ` link_to ` link to the real file
187192 - ` chunk `
188193 - ` offset ` the offset relative to the origin of the file
189194 - ` size ` file chunk size of bytes, directory is always ` 0 `
@@ -208,7 +213,7 @@ Accept-Encoding: gzip
208213--d9e3eb63103de1c2698b0675a70567e47bed1b06c71ff9e26199967312d1
209214Content-Disposition: form-data; name="push_data"
210215
211- {"action":2,"push_action":4,"file_info":{"path":"hello_gofs.txt","is_dir":0,"size":5,"hash":"5d41402abc4b2a76b9719d911017c592","hash_values":null,"c_time":1651681421,"a_time":1651681421,"m_time":1651681421},"chunk":{"offset":0,"hash":"5d41402abc4b2a76b9719d911017c592","size":5},"force_checksum":false}
216+ {"action":2,"push_action":4,"file_info":{"path":"hello_gofs.txt","is_dir":0,"size":5,"hash":"5d41402abc4b2a76b9719d911017c592","hash_values":null,"c_time":1651681421,"a_time":1651681421,"m_time":1651681421,"link_to":"" },"chunk":{"offset":0,"hash":"5d41402abc4b2a76b9719d911017c592","size":5},"force_checksum":false}
212217--d9e3eb63103de1c2698b0675a70567e47bed1b06c71ff9e26199967312d1
213218Content-Disposition: form-data; name="up_file"; filename="hello_gofs.txt"
214219Content-Type: application/octet-stream
0 commit comments