decodeFileSegment
function decodeFileSegment(part): string;Reverse encodeFileSegment, and never throw.
decodeURIComponent raises URIError on a bare % — 50%.md is enough —
and listBlocks decodes every filename in a directory. A single hand-edited
or legacy file would otherwise take down listing for that whole (scope,
owner), not just its own entry. This store’s own docs invite exactly that:
blocks are human-editable markdown and admin scripts may seed them.
Strict on write, lenient on read: an undecodable name is returned verbatim, which is what a human who created it by hand would expect to see.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”string