fix dirs in getUserSkillsDirs

This commit is contained in:
LaZzyMan 2026-03-10 14:33:40 +08:00
parent c3c8b39a29
commit 06bef3b91f
9 changed files with 32 additions and 24 deletions

View file

@ -241,6 +241,10 @@ export function isSubpath(parentPath: string, childPath: string): boolean {
);
}
export function isSubpaths(parentPath: string[], childPath: string): boolean {
return parentPath.some((p) => isSubpath(p, childPath));
}
/**
* Resolves a path with tilde (~) expansion and relative path resolution.
* Handles tilde expansion for home directory and resolves relative paths