MCPcopy Create free account
hub / github.com/acl-dev/acl / get_relative_path

Function get_relative_path

lib_acl_cpp/samples/scan_dir/main.cpp:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static bool get_relative_path(const char* spath, const char* filepath,
75 acl::string& rpath)
76{
77 size_t n = strlen(spath);
78 if (strncmp(filepath, spath, n) != 0)
79 return false;
80 filepath += n;
81 if (*filepath == 0)
82 return false;
83 rpath = filepath;
84 return true;
85}
86
87static bool compare_files(const char* sfile, const char* dfile, bool ignore)
88{

Callers 1

diff_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…