Skip to content

refactor!: Remove stat_has_xxx and list_has_xxx #6313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions core/src/services/aliyun_drive/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,6 @@ impl Builder for AliyunDriveBuilder {
list: true,
list_with_limit: true,
shared: true,
stat_has_content_length: true,
stat_has_content_type: true,
list_has_last_modified: true,
list_has_content_length: true,
list_has_content_type: true,
..Default::default()
});

Expand Down
4 changes: 0 additions & 4 deletions core/src/services/alluxio/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ impl Builder for AlluxioBuilder {
list: true,

shared: true,
stat_has_content_length: true,
stat_has_last_modified: true,
list_has_content_length: true,
list_has_last_modified: true,

..Default::default()
});
Expand Down
14 changes: 0 additions & 14 deletions core/src/services/azblob/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,15 +392,6 @@ impl Builder for AzblobBuilder {
stat: true,
stat_with_if_match: true,
stat_with_if_none_match: true,
stat_has_cache_control: true,
stat_has_content_length: true,
stat_has_content_type: true,
stat_has_content_encoding: true,
stat_has_content_range: true,
stat_has_etag: true,
stat_has_content_md5: true,
stat_has_last_modified: true,
stat_has_content_disposition: true,

read: true,

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

list: true,
list_with_recursive: true,
list_has_etag: true,
list_has_content_length: true,
list_has_content_md5: true,
list_has_content_type: true,
list_has_last_modified: true,

presign: self.config.sas_token.is_some(),
presign_stat: self.config.sas_token.is_some(),
Expand Down
12 changes: 0 additions & 12 deletions core/src/services/azdls/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,15 +301,6 @@ impl Builder for AzdlsBuilder {
.set_name(filesystem)
.set_native_capability(Capability {
stat: true,
stat_has_cache_control: true,
stat_has_content_length: true,
stat_has_content_type: true,
stat_has_content_encoding: true,
stat_has_content_range: true,
stat_has_etag: true,
stat_has_content_md5: true,
stat_has_last_modified: true,
stat_has_content_disposition: true,

read: true,

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

list: true,
list_has_etag: true,
list_has_content_length: true,
list_has_last_modified: true,

shared: true,

Expand Down
12 changes: 0 additions & 12 deletions core/src/services/azfile/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,6 @@ impl Builder for AzfileBuilder {
.set_root(&root)
.set_native_capability(Capability {
stat: true,
stat_has_cache_control: true,
stat_has_content_length: true,
stat_has_content_type: true,
stat_has_content_encoding: true,
stat_has_content_range: true,
stat_has_etag: true,
stat_has_content_md5: true,
stat_has_last_modified: true,
stat_has_content_disposition: true,

read: true,

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

list: true,
list_has_etag: true,
list_has_last_modified: true,
list_has_content_length: true,

shared: true,

Expand Down
6 changes: 0 additions & 6 deletions core/src/services/b2/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,6 @@ impl Builder for B2Builder {
.set_root(&root)
.set_native_capability(Capability {
stat: true,
stat_has_content_length: true,
stat_has_content_md5: true,
stat_has_content_type: true,

read: true,

Expand Down Expand Up @@ -226,9 +223,6 @@ impl Builder for B2Builder {
list_with_limit: true,
list_with_start_after: true,
list_with_recursive: true,
list_has_content_length: true,
list_has_content_md5: true,
list_has_content_type: true,

presign: true,
presign_read: true,
Expand Down
1 change: 0 additions & 1 deletion core/src/services/compfs/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ impl Builder for CompfsBuilder {
.set_root(&root)
.set_native_capability(Capability {
stat: true,
stat_has_last_modified: true,

read: true,

Expand Down
12 changes: 0 additions & 12 deletions core/src/services/cos/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,18 +229,7 @@ impl Builder for CosBuilder {
stat: true,
stat_with_if_match: true,
stat_with_if_none_match: true,
stat_has_cache_control: true,
stat_has_content_length: true,
stat_has_content_type: true,
stat_has_content_encoding: true,
stat_has_content_range: true,
stat_with_version: self.config.enable_versioning,
stat_has_etag: true,
stat_has_content_md5: true,
stat_has_last_modified: true,
stat_has_content_disposition: true,
stat_has_version: true,
stat_has_user_metadata: true,

read: true,

Expand Down Expand Up @@ -279,7 +268,6 @@ impl Builder for CosBuilder {
list_with_recursive: true,
list_with_versions: self.config.enable_versioning,
list_with_deleted: self.config.enable_versioning,
list_has_content_length: true,

presign: true,
presign_stat: true,
Expand Down
11 changes: 0 additions & 11 deletions core/src/services/dbfs/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,24 +154,13 @@ impl Access for DbfsBackend {
.set_root(&self.core.root)
.set_native_capability(Capability {
stat: true,
stat_has_cache_control: true,
stat_has_content_length: true,
stat_has_content_type: true,
stat_has_content_encoding: true,
stat_has_content_range: true,
stat_has_etag: true,
stat_has_content_md5: true,
stat_has_last_modified: true,
stat_has_content_disposition: true,

write: true,
create_dir: true,
delete: true,
rename: true,

list: true,
list_has_last_modified: true,
list_has_content_length: true,

shared: true,

Expand Down
4 changes: 0 additions & 4 deletions core/src/services/dropbox/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@ impl Builder for DropboxBuilder {
.set_root(&root)
.set_native_capability(Capability {
stat: true,
stat_has_last_modified: true,
stat_has_content_length: true,

read: true,

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

list: true,
list_with_recursive: true,
list_has_last_modified: true,
list_has_content_length: true,

copy: true,

Expand Down
2 changes: 0 additions & 2 deletions core/src/services/fs/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ impl Builder for FsBuilder {
.set_root(&root.to_string_lossy())
.set_native_capability(Capability {
stat: true,
stat_has_content_length: true,
stat_has_last_modified: true,

read: true,

Expand Down
4 changes: 0 additions & 4 deletions core/src/services/ftp/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ impl Builder for FtpBuilder {
.set_root(&root)
.set_native_capability(Capability {
stat: true,
stat_has_content_length: true,
stat_has_last_modified: true,

read: true,

Expand All @@ -180,8 +178,6 @@ impl Builder for FtpBuilder {
create_dir: true,

list: true,
list_has_content_length: true,
list_has_last_modified: true,

shared: true,

Expand Down
13 changes: 0 additions & 13 deletions core/src/services/gcs/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,14 +315,6 @@ impl Builder for GcsBuilder {
stat: true,
stat_with_if_match: true,
stat_with_if_none_match: true,
stat_has_etag: true,
stat_has_content_md5: true,
stat_has_content_length: true,
stat_has_content_type: true,
stat_has_content_encoding: true,
stat_has_last_modified: true,
stat_has_user_metadata: true,
stat_has_cache_control: true,

read: true,

Expand Down Expand Up @@ -359,11 +351,6 @@ impl Builder for GcsBuilder {
list_with_limit: true,
list_with_start_after: true,
list_with_recursive: true,
list_has_etag: true,
list_has_content_md5: true,
list_has_content_length: true,
list_has_content_type: true,
list_has_last_modified: true,

presign: true,
presign_stat: true,
Expand Down
6 changes: 0 additions & 6 deletions core/src/services/gdrive/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,10 @@ impl Builder for GdriveBuilder {
.set_root(&root)
.set_native_capability(Capability {
stat: true,
stat_has_content_length: true,
stat_has_content_type: true,
stat_has_last_modified: true,

read: true,

list: true,
list_has_content_type: true,
list_has_content_length: true,
list_has_etag: true,

write: true,

Expand Down
9 changes: 0 additions & 9 deletions core/src/services/ghac/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,6 @@ impl Builder for GhacBuilder {
.set_name(&version)
.set_native_capability(Capability {
stat: true,
stat_has_cache_control: true,
stat_has_content_length: true,
stat_has_content_type: true,
stat_has_content_encoding: true,
stat_has_content_range: true,
stat_has_etag: true,
stat_has_content_md5: true,
stat_has_last_modified: true,
stat_has_content_disposition: true,

read: true,

Expand Down
14 changes: 0 additions & 14 deletions core/src/services/ghac/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,6 @@ impl GhacWriter {
stat: true,
stat_with_if_match: true,
stat_with_if_none_match: true,
stat_has_cache_control: true,
stat_has_content_length: true,
stat_has_content_type: true,
stat_has_content_encoding: true,
stat_has_content_range: true,
stat_has_etag: true,
stat_has_content_md5: true,
stat_has_last_modified: true,
stat_has_content_disposition: true,

read: true,

Expand All @@ -107,11 +98,6 @@ impl GhacWriter {

list: true,
list_with_recursive: true,
list_has_etag: true,
list_has_content_length: true,
list_has_content_md5: true,
list_has_content_type: true,
list_has_last_modified: true,

shared: true,

Expand Down
4 changes: 0 additions & 4 deletions core/src/services/github/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ impl Builder for GithubBuilder {
.set_root(&root)
.set_native_capability(Capability {
stat: true,
stat_has_content_length: true,
stat_has_etag: true,

read: true,

Expand All @@ -169,8 +167,6 @@ impl Builder for GithubBuilder {

list: true,
list_with_recursive: true,
list_has_content_length: true,
list_has_etag: true,

shared: true,

Expand Down
4 changes: 0 additions & 4 deletions core/src/services/hdfs/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ impl Builder for HdfsBuilder {
.set_root(&root)
.set_native_capability(Capability {
stat: true,
stat_has_content_length: true,
stat_has_last_modified: true,

read: true,

Expand All @@ -192,8 +190,6 @@ impl Builder for HdfsBuilder {
delete: true,

list: true,
list_has_content_length: true,
list_has_last_modified: true,

rename: true,

Expand Down
4 changes: 0 additions & 4 deletions core/src/services/hdfs_native/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ impl Access for HdfsNativeBackend {
.set_root(&self.root)
.set_native_capability(Capability {
stat: true,
stat_has_last_modified: true,
stat_has_content_length: true,

read: true,

Expand All @@ -166,8 +164,6 @@ impl Access for HdfsNativeBackend {
delete: true,

list: true,
list_has_content_length: true,
list_has_last_modified: true,

rename: true,

Expand Down
9 changes: 0 additions & 9 deletions core/src/services/http/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,6 @@ impl Builder for HttpBuilder {
stat: true,
stat_with_if_match: true,
stat_with_if_none_match: true,
stat_has_cache_control: true,
stat_has_content_length: true,
stat_has_content_type: true,
stat_has_content_encoding: true,
stat_has_content_range: true,
stat_has_etag: true,
stat_has_content_md5: true,
stat_has_last_modified: true,
stat_has_content_disposition: true,

read: true,

Expand Down
Loading
Loading