(logicalPath: string)
| 60 | } |
| 61 | } |
| 62 | |
| 63 | return path.posix.normalize(unixLikePath); |
| 64 | } |
| 65 | |
| 66 | function ensureInsideRoot(absolutePath: string): void { |
| 67 | const relative = path.relative(rootPath, absolutePath); |
| 68 | if (relative.startsWith('..') || path.isAbsolute(relative)) { |
| 69 | throw new StoragePathError('Requested path is outside of storage root'); |
| 70 | } |
nothing calls this directly
no test coverage detected