···9898 } else {
9999 // Non-glob path: check if it's a directory and list its contents
100100 let normalized_path = path_str.trim_start_matches('/').trim_end_matches('/');
101101- let target_path = base_path.join(normalized_path)
101101+ let target_path = base_path
102102+ .join(normalized_path)
102103 .map_err(to_shell_err(call.arguments_span()))?;
103103-104104+104105 let metadata = target_path.metadata().map_err(to_shell_err(span))?;
105106 match metadata.file_type {
106107 vfs::VfsFileType::Directory => {