openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 346 B
JavaScript
import e from"node:path";import{hasNodeErrorCode as t,isPathInside as n}from"@openclaw/fs-safe/path";function normalizeWindowsPathPreservingCase(t){let n=e.win32.normalize(t);if(!n.startsWith(`\\\\?\\`))return n;let r=n.slice(4);return r.toUpperCase().startsWith(`UNC\\`)?`\\\\${r.slice(4)}`:r}export{n,normalizeWindowsPathPreservingCase as r,t};