package luv

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Luv.PathSource

Sourceval exepath : unit -> (string, Error.t) Result.result

Evaluates to the executable's path.

Binds uv_exepath.

Sourceval cwd : unit -> (string, Error.t) Result.result

Evaluates to the current working directory.

Binds uv_cwd. See getcwd(3p).

Sourceval chdir : string -> (unit, Error.t) Result.result

Changes the current working directory.

Binds uv_chdir. See chdir(3p).

Sourceval homedir : unit -> (string, Error.t) Result.result

Evaluates to the path of the home directory.

Binds uv_os_homedir.

Requires libuv 1.6.0.

Feature check: Luv.Require.(has os_homedir)

Sourceval tmpdir : unit -> (string, Error.t) Result.result

Evaluates to the path of the temporary directory.

Binds uv_os_tmpdir.

Requires libuv 1.9.0.

Feature check: Luv.Require.(has os_tmpdir)

OCaml

Innovation. Community. Security.