From 3399332fda2a7efb1d87f3c826791d221662f938 Mon Sep 17 00:00:00 2001 From: iliya Date: Sun, 1 Mar 2026 08:47:10 +0200 Subject: [PATCH] docs: add cross-platform note to pathValidation --- src/main/utils/pathValidation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/utils/pathValidation.ts b/src/main/utils/pathValidation.ts index 22290e5f..63e50334 100644 --- a/src/main/utils/pathValidation.ts +++ b/src/main/utils/pathValidation.ts @@ -3,6 +3,9 @@ * * Provides security sandboxing for file path access to prevent * unauthorized access to sensitive system files. + * + * Cross-platform: uses path.resolve() for consistent drive-letter + * handling on Windows (normalizeForCompare, isPathWithinRoot). */ import * as fs from 'fs';