MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / with_trailing_slash

Function with_trailing_slash

document/container/src/lib.rs:151–159  ·  view source on GitHub ↗

Normalize a listing prefix to end with a trailing slash (unless it names the container root). The root (empty string or `.`) normalizes to the empty string, so backends concatenate child paths as `prefix/child` without a double, missing, or `./`-rooted slash.

(prefix: &str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

listMethod · 0.85
list_dirsMethod · 0.85
list_entriesFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected