mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-21 03:46:37 +00:00
@@ -1,3 +1,5 @@
|
||||
use crate::disk::RUSTFS_META_BUCKET;
|
||||
|
||||
pub fn match_simple(pattern: &str, name: &str) -> bool {
|
||||
if pattern.is_empty() {
|
||||
return name == pattern;
|
||||
@@ -65,3 +67,7 @@ pub fn match_as_pattern_prefix(pattern: &str, text: &str) -> bool {
|
||||
}
|
||||
text.len() <= pattern.len()
|
||||
}
|
||||
|
||||
pub fn is_rustfs_meta_bucket_name(bucket: &str) -> bool {
|
||||
bucket.starts_with(RUSTFS_META_BUCKET)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user