fn dirStartsWith(path: []const u8, prefix: []const u8) bool
fn dirStartsWith(path: []const u8, prefix: []const u8) bool { if (std.mem.eql(u8, path, prefix)) return true; if (!std.mem.startsWith(u8, path, prefix)) return false; if (path[prefix.len] != '/') return false; // `path` is `/foo/barx`, `prefix` is `/foo/bar` return true; // `path` is `/foo/bar/...`, `prefix` is `/foo/bar` }