klyn.io.Files.requireNoSymlinks
method
public static requireNoSymlinks(path as Path) as Void
Description

Refuses symlinks in a path or any ancestor, including dangling links. This is a cooperative path check, not protection against a hostile local process replacing directories concurrently. Use OS isolation for that.

Throws
  • IOException if a linked component is found. Example: Files.requireNoSymlinks(Path("uploads/report.pdf")).