package bos

  1. Overview
  2. Docs

Module Bos.OSSource

OS interaction

Results

The functions of this module never raise Sys_error or Unix.Unix_error instead they turn these errors into error messages. If you need fine grained control over unix errors use the lower level functions in Bos.OS.U.

Sourcetype ('a, 'e) result = ('a, [> Rresult.R.msg ] as 'e) result

The type for OS results.

Environment variables and program arguments

Sourcemodule Env : sig ... end

Environment variables.

Sourcemodule Arg : sig ... end

Quick and dirty program arguments parsing.

File system operations

Note. When paths are relative they are expressed relative to the current working directory.

Sourcemodule Path : sig ... end

Path operations.

Sourcemodule File : sig ... end

File operations.

Sourcemodule Dir : sig ... end

Directory operations.

Commands

Sourcemodule Cmd : sig ... end

Executing commands.

Low level Unix access

module U : sig ... end

Low level Unix access.

OCaml

Innovation. Community. Security.