docs: add cross-platform note to pathValidation
This commit is contained in:
parent
406f450c5a
commit
3399332fda
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,9 @@
|
||||||
*
|
*
|
||||||
* Provides security sandboxing for file path access to prevent
|
* Provides security sandboxing for file path access to prevent
|
||||||
* unauthorized access to sensitive system files.
|
* 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';
|
import * as fs from 'fs';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue