Pudu programming language
Menu
API reference

Std.Path.isInside

1 declaration

fn

isInside: Str -> Str -> Bool

This is a callable function.

What it does

Whether one path is inside another, once both are normalized.

The question a program asks before writing somewhere a caller named: a

relative path holding .. can leave the directory it looked like it was

under, and reading the text without normalizing first would not notice.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.

Back to Std.PathSearch related declarations