Pudu programming language
Menu
API reference

Std.Env.homeDirectory

1 declaration

fn

homeDirectory: Option[Str]

This is a callable function.

What it does

The directory this machine calls the reader's own, when it has one.

Asked of the machine rather than of one variable. HOME is the name one

family of operating system uses and USERPROFILE is the other's, and a

program that asked only for the first answered None on a machine that has

a home directory and a different word for it.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Names inside [ ] are type arguments, such as the item type held by a collection.
  • Option holds Some(value) or None when no value is available.

Back to Std.EnvSearch related declarations