docs: add cross-platform note to pathValidation

This commit is contained in:
iliya 2026-03-01 08:47:10 +02:00
parent 406f450c5a
commit 3399332fda

View file

@ -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';