mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: resolved an issue without recursive matching
This commit is contained in:
@@ -365,9 +365,8 @@ export const recursivelyGetSecretPaths = async ({
|
|||||||
folderId: p.folderId
|
folderId: p.folderId
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const pathsInCurrentDirectory = paths.filter((folder) =>
|
// path relative will start with ../ if its outside directory
|
||||||
folder.path.startsWith(currentPath === "/" ? "" : currentPath)
|
const pathsInCurrentDirectory = paths.filter((folder) => !path.relative(currentPath, folder.path).startsWith(".."));
|
||||||
);
|
|
||||||
|
|
||||||
return pathsInCurrentDirectory;
|
return pathsInCurrentDirectory;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user