maxUpLevels property

int? maxUpLevels
final

Maximum number of "../" path components allowed in relative paths.

Higher values allow more aggressive relativization but may reduce readability. Setting to 0 disables cross-directory navigation entirely, allowing only same-directory and child directory relativization.

Examples:

  • -1: Special value to disable all relativization (use absolute IRIs only)
  • 0: Only same-directory and child directory relativization
  • 1: Allow one level up (../file.txt)
  • 2: Allow two levels up (../../file.txt)
  • null: No limit

Implementation

final int? maxUpLevels;