Initial commit of Stalwart MCP Server

This commit is contained in:
2026-06-06 08:14:23 +02:00
commit e667786d02
4014 changed files with 927294 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
export const getRelativePath = (pathA, pathB) => {
let i = 0;
for (; i < pathA.length && i < pathB.length; i++) {
if (pathA[i] !== pathB[i])
break;
}
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
};