pysepal.sepalwidgets.file_input.is_within#

pysepal.sepalwidgets.file_input.is_within(path, root)[source]#

Whether path stays inside root once .. and symlinks are resolved.

Parameters:
  • path (str | Path)

  • root (str | Path)

Return type:

bool