Skip to content

Commit 1391a8a

Browse files
committed
FS Provider: print fs5:// URIs of indexed directories
1 parent 7b9fc6d commit 1391a8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/store/fs_provider.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class FileSystemProviderObjectStore extends ObjectStore {
140140

141141
// CID type directory
142142
final cid = CID(
143-
0x5d,
143+
cidTypeMetadataDirectory,
144144
hash,
145145
size: dirBytes.length,
146146
);
@@ -161,7 +161,7 @@ class FileSystemProviderObjectStore extends ObjectStore {
161161

162162
if (path.isEmpty) {
163163
node.logger.info(
164-
'${dir.path}: skyfs://${base64UrlNoPaddingEncode(keyPair.publicKey)}@shared-readonly CID: $cid',
164+
'${dir.path}: fs5://${CID(cidTypeMetadataDirectory, Multihash(keyPair.publicKey)).toBase32()}',
165165
);
166166
}
167167
}

0 commit comments

Comments
 (0)