Skip to content

Commit

Permalink
fix: inconsistent path in azure list
Browse files Browse the repository at this point in the history
  • Loading branch information
roeap committed Jul 6, 2022
1 parent 9bfa8ab commit 1287225
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions rust/src/storage/azure/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,16 +359,12 @@ impl StorageBackend for AdlsGen2Backend {
Ok(self
.file_system_client
.list_paths()
// TODO this assumes we are always only interested in listing contents in one directory.
// to make list requests cheaper. As far as I can tell this should work in this case,
// although this behavior might be different in other object store implementations.
.recursive(false)
.directory(obj.path)
.into_stream()
.flat_map(|it| match it {
Ok(paths) => Either::Left(stream::iter(paths.into_iter().map(|p| {
Ok(ObjectMeta {
path: path.to_string(),
path: format!("adls2://{}/{}", self.file_system_name, path.to_owned()),
modified: p.last_modified,
size: Some(p.content_length),
})
Expand Down

0 comments on commit 1287225

Please sign in to comment.