use object_store::path::Path;
use crate::file_store::constants::HIDDEN_PREFIXES;
pub(crate) fn object_path(key: &str) -> Result<Path, object_store::Error> {
Ok(Path::parse(key.trim_end_matches('/'))?)
}
pub(crate) fn is_hidden(relative_key: &str) -> bool {
relative_key
.split('/')
.any(|segment| segment.starts_with(HIDDEN_PREFIXES))
}