diff --git a/rust/src/storage/mod.rs b/rust/src/storage/mod.rs index e2a5788b3b..2eb224fb6d 100644 --- a/rust/src/storage/mod.rs +++ b/rust/src/storage/mod.rs @@ -251,12 +251,7 @@ pub fn parse_uri<'a>(path: &'a str) -> Result, UriError> { return Err(UriError::MissingObjectFileSystem); } }; - let path = match path_parts.next() { - Some(x) => x, - None => { - return Err(UriError::MissingObjectPath); - } - }; + let path = path_parts.next().unwrap_or("/"); Ok(Uri::AdlsGen2Object(azure::AdlsGen2Object { account_name, file_system, path })) } else {