MCPcopy Create free account
hub / github.com/antirez/disque / getAbsolutePath

Function getAbsolutePath

src/util.c:523–566  ·  view source on GitHub ↗

Given the filename, return the absolute path as an SDS string, or NULL * if it fails for some reason. Note that "filename" may be an absolute path * already, this will be detected and handled correctly. * * The function does not try to normalize everything, but only the obvious * case of one or more "../" appearning at the start of "filename" * relative path. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls 7

sdsnewFunction · 0.70
sdstrimFunction · 0.70
sdsfreeFunction · 0.70
sdslenFunction · 0.70
sdscatFunction · 0.70
sdsrangeFunction · 0.70
sdscatsdsFunction · 0.70

Tested by

no test coverage detected