MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / normalizePlatformPath

Function normalizePlatformPath

packages/components/src/validator.ts:296–299  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

294}
295
296const normalizePlatformPath = (p: string): string => {
297 const n = path.normalize(p)
298 return process.platform === 'win32' ? n.toLowerCase() : n
299}
300
301const isPathWithinAllowedSQLiteDirs = (resolvedPath: string, allowedDirs: string[]): boolean => {
302 const normalizedResolved = normalizePlatformPath(resolvedPath)

Callers 2

validateVectorStorePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected