Skip to content

Commit

Permalink
Add DirectoryMetadata support
Browse files Browse the repository at this point in the history
  • Loading branch information
redsolver committed Jan 12, 2024
1 parent 3f7d84e commit 1dfd599
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/node.dart
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,8 @@ class S5Node {
metadata = await deserializeMediaMetadata(bytes, crypto: crypto);
} else if (cid.type == cidTypeMetadataWebApp) {
metadata = deserializeWebAppMetadata(bytes);
} else if (cid.type == cidTypeMetadataDirectory) {
metadata = DirectoryMetadata.deserizalize(bytes);
} else if (cid.type == cidTypeBridge) {
metadata = await deserializeMediaMetadata(bytes, crypto: crypto);
} else {
Expand Down

0 comments on commit 1dfd599

Please sign in to comment.