Skip to content

Commit 06370cc

Browse files
authored
refactor!: Remove stat_has_xxx and list_has_xxx (#6313)
Signed-off-by: Xuanwo <[email protected]>
1 parent e515e8a commit 06370cc

File tree

43 files changed

+0
-344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+0
-344
lines changed

core/src/services/aliyun_drive/backend.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,6 @@ impl Builder for AliyunDriveBuilder {
199199
list: true,
200200
list_with_limit: true,
201201
shared: true,
202-
stat_has_content_length: true,
203-
stat_has_content_type: true,
204-
list_has_last_modified: true,
205-
list_has_content_length: true,
206-
list_has_content_type: true,
207202
..Default::default()
208203
});
209204

core/src/services/alluxio/backend.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,6 @@ impl Builder for AlluxioBuilder {
146146
list: true,
147147

148148
shared: true,
149-
stat_has_content_length: true,
150-
stat_has_last_modified: true,
151-
list_has_content_length: true,
152-
list_has_last_modified: true,
153149

154150
..Default::default()
155151
});

core/src/services/azblob/backend.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -392,15 +392,6 @@ impl Builder for AzblobBuilder {
392392
stat: true,
393393
stat_with_if_match: true,
394394
stat_with_if_none_match: true,
395-
stat_has_cache_control: true,
396-
stat_has_content_length: true,
397-
stat_has_content_type: true,
398-
stat_has_content_encoding: true,
399-
stat_has_content_range: true,
400-
stat_has_etag: true,
401-
stat_has_content_md5: true,
402-
stat_has_last_modified: true,
403-
stat_has_content_disposition: true,
404395

405396
read: true,
406397

@@ -427,11 +418,6 @@ impl Builder for AzblobBuilder {
427418

428419
list: true,
429420
list_with_recursive: true,
430-
list_has_etag: true,
431-
list_has_content_length: true,
432-
list_has_content_md5: true,
433-
list_has_content_type: true,
434-
list_has_last_modified: true,
435421

436422
presign: self.config.sas_token.is_some(),
437423
presign_stat: self.config.sas_token.is_some(),

core/src/services/azdls/backend.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,6 @@ impl Builder for AzdlsBuilder {
301301
.set_name(filesystem)
302302
.set_native_capability(Capability {
303303
stat: true,
304-
stat_has_cache_control: true,
305-
stat_has_content_length: true,
306-
stat_has_content_type: true,
307-
stat_has_content_encoding: true,
308-
stat_has_content_range: true,
309-
stat_has_etag: true,
310-
stat_has_content_md5: true,
311-
stat_has_last_modified: true,
312-
stat_has_content_disposition: true,
313304

314305
read: true,
315306

@@ -323,9 +314,6 @@ impl Builder for AzdlsBuilder {
323314
rename: true,
324315

325316
list: true,
326-
list_has_etag: true,
327-
list_has_content_length: true,
328-
list_has_last_modified: true,
329317

330318
shared: true,
331319

core/src/services/azfile/backend.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -230,15 +230,6 @@ impl Builder for AzfileBuilder {
230230
.set_root(&root)
231231
.set_native_capability(Capability {
232232
stat: true,
233-
stat_has_cache_control: true,
234-
stat_has_content_length: true,
235-
stat_has_content_type: true,
236-
stat_has_content_encoding: true,
237-
stat_has_content_range: true,
238-
stat_has_etag: true,
239-
stat_has_content_md5: true,
240-
stat_has_last_modified: true,
241-
stat_has_content_disposition: true,
242233

243234
read: true,
244235

@@ -248,9 +239,6 @@ impl Builder for AzfileBuilder {
248239
rename: true,
249240

250241
list: true,
251-
list_has_etag: true,
252-
list_has_last_modified: true,
253-
list_has_content_length: true,
254242

255243
shared: true,
256244

core/src/services/b2/backend.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,6 @@ impl Builder for B2Builder {
196196
.set_root(&root)
197197
.set_native_capability(Capability {
198198
stat: true,
199-
stat_has_content_length: true,
200-
stat_has_content_md5: true,
201-
stat_has_content_type: true,
202199

203200
read: true,
204201

@@ -226,9 +223,6 @@ impl Builder for B2Builder {
226223
list_with_limit: true,
227224
list_with_start_after: true,
228225
list_with_recursive: true,
229-
list_has_content_length: true,
230-
list_has_content_md5: true,
231-
list_has_content_type: true,
232226

233227
presign: true,
234228
presign_read: true,

core/src/services/compfs/backend.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ impl Builder for CompfsBuilder {
9595
.set_root(&root)
9696
.set_native_capability(Capability {
9797
stat: true,
98-
stat_has_last_modified: true,
9998

10099
read: true,
101100

core/src/services/cos/backend.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -229,18 +229,7 @@ impl Builder for CosBuilder {
229229
stat: true,
230230
stat_with_if_match: true,
231231
stat_with_if_none_match: true,
232-
stat_has_cache_control: true,
233-
stat_has_content_length: true,
234-
stat_has_content_type: true,
235-
stat_has_content_encoding: true,
236-
stat_has_content_range: true,
237232
stat_with_version: self.config.enable_versioning,
238-
stat_has_etag: true,
239-
stat_has_content_md5: true,
240-
stat_has_last_modified: true,
241-
stat_has_content_disposition: true,
242-
stat_has_version: true,
243-
stat_has_user_metadata: true,
244233

245234
read: true,
246235

@@ -279,7 +268,6 @@ impl Builder for CosBuilder {
279268
list_with_recursive: true,
280269
list_with_versions: self.config.enable_versioning,
281270
list_with_deleted: self.config.enable_versioning,
282-
list_has_content_length: true,
283271

284272
presign: true,
285273
presign_stat: true,

core/src/services/dbfs/backend.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -154,24 +154,13 @@ impl Access for DbfsBackend {
154154
.set_root(&self.core.root)
155155
.set_native_capability(Capability {
156156
stat: true,
157-
stat_has_cache_control: true,
158-
stat_has_content_length: true,
159-
stat_has_content_type: true,
160-
stat_has_content_encoding: true,
161-
stat_has_content_range: true,
162-
stat_has_etag: true,
163-
stat_has_content_md5: true,
164-
stat_has_last_modified: true,
165-
stat_has_content_disposition: true,
166157

167158
write: true,
168159
create_dir: true,
169160
delete: true,
170161
rename: true,
171162

172163
list: true,
173-
list_has_last_modified: true,
174-
list_has_content_length: true,
175164

176165
shared: true,
177166

core/src/services/dropbox/builder.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ impl Builder for DropboxBuilder {
186186
.set_root(&root)
187187
.set_native_capability(Capability {
188188
stat: true,
189-
stat_has_last_modified: true,
190-
stat_has_content_length: true,
191189

192190
read: true,
193191

@@ -199,8 +197,6 @@ impl Builder for DropboxBuilder {
199197

200198
list: true,
201199
list_with_recursive: true,
202-
list_has_last_modified: true,
203-
list_has_content_length: true,
204200

205201
copy: true,
206202

0 commit comments

Comments
 (0)