Navigate password folders on iPhone
This commit is contained in:
@@ -386,8 +386,7 @@ impl<'a> VaultReader<'a> {
|
||||
}
|
||||
|
||||
pub fn list(&self, directory: &DirectoryPath) -> Result<TreeModel, ReadError> {
|
||||
let snapshot = self.repository.snapshot()?;
|
||||
build_tree(&snapshot, directory, None)
|
||||
list_tree(self.repository, directory)
|
||||
}
|
||||
|
||||
/// Implement explicit or implicit show dispatch. No path means the root tree; a directory
|
||||
@@ -565,6 +564,15 @@ impl<'a> VaultReader<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Build a locked navigation model without loading key material or decrypting entries.
|
||||
pub(crate) fn list_tree(
|
||||
repository: &Repository,
|
||||
directory: &DirectoryPath,
|
||||
) -> Result<TreeModel, ReadError> {
|
||||
let snapshot = repository.snapshot()?;
|
||||
build_tree(&snapshot, directory, None)
|
||||
}
|
||||
|
||||
fn build_regex(request: &GrepRequest) -> Result<Regex, ReadError> {
|
||||
let pattern = if request.fixed_strings {
|
||||
regex::escape(&request.pattern)
|
||||
|
||||
Reference in New Issue
Block a user