Module Bos.OS
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.
type ('a, 'e) result = ('a, [> Rresult.R.msg ] as 'e) Stdlib.resultThe type for OS results.
Environment variables and program arguments
module Env : sig ... endEnvironment variables.
module Arg : sig ... endQuick and dirty program arguments parsing.
File system operations
Note. When paths are relative they are expressed relative to the current working directory.
module Path : sig ... endPath operations.
module File : sig ... endFile operations.
module Dir : sig ... endDirectory operations.
Commands
module Cmd : sig ... endExecuting commands.