mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-03 15:27:57 +08:00
Use short hash for uniform CID presentation of directory items
This commit is contained in:
parent
c5d042ac5f
commit
ce0dceac34
File diff suppressed because one or more lines are too long
@ -25,6 +25,7 @@ type directoryItem struct {
|
||||
Name string
|
||||
Path string
|
||||
Hash string
|
||||
ShortHash string
|
||||
}
|
||||
|
||||
type breadcrumb struct {
|
||||
@ -39,11 +40,13 @@ var testData = listingTemplateData{
|
||||
Name: "short-film.mov",
|
||||
Path: testPath + "/short-film.mov",
|
||||
Hash: "QmQuxBarQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7",
|
||||
ShortHash: "QmQu\u2026xDu7",
|
||||
}, {
|
||||
Size: "1 KiB",
|
||||
Name: "this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt",
|
||||
Path: testPath + "/this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt",
|
||||
Hash: "QmquXbaRQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7",
|
||||
ShortHash: "Qmqu\u2026xDu7",
|
||||
}},
|
||||
Size: "25 MiB",
|
||||
Path: testPath,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user